dovecot-2.2: imapc: Ignore \Muted GMail label

dovecot at dovecot.org dovecot at dovecot.org
Tue Mar 24 09:15:54 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/41985233e1e8
changeset: 18385:41985233e1e8
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Mar 24 10:14:58 2015 +0100
description:
imapc: Ignore \Muted GMail label

diffstat:

 src/lib-storage/index/imapc/imapc-mailbox.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 0bbdc413285e -r 41985233e1e8 src/lib-storage/index/imapc/imapc-mailbox.c
--- a/src/lib-storage/index/imapc/imapc-mailbox.c	Sun Mar 22 20:54:29 2015 +0200
+++ b/src/lib-storage/index/imapc/imapc-mailbox.c	Tue Mar 24 10:14:58 2015 +0100
@@ -315,8 +315,12 @@
 			   IMAPC_BOX_HAS_FEATURE(mbox, IMAPC_FEATURE_GMAIL_MIGRATION)) {
 			if (!imap_arg_get_list(&list[i+1], &flags_list))
 				return;
-			if (flags_list[0].type != IMAP_ARG_EOL)
-				have_labels = TRUE;
+			for (j = 0; flags_list[j].type != IMAP_ARG_EOL; j++) {
+				if (!imap_arg_get_atom(&flags_list[j], &atom))
+					return;
+				if (strcasecmp(atom, "\\Muted") != 0)
+					have_labels = TRUE;
+			}
 		}
 	}
 


More information about the dovecot-cvs mailing list