dovecot-2.2: imapc: Fix to previous change - labels are strings ...

dovecot at dovecot.org dovecot at dovecot.org
Tue Mar 24 09:28:26 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/acb0590787a0
changeset: 18386:acb0590787a0
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Mar 24 11:27:26 2015 +0200
description:
imapc: Fix to previous change - labels are strings and not atoms.
Allow also atoms just in case

diffstat:

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

diffs (22 lines):

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


More information about the dovecot-cvs mailing list