dovecot-2.2: imap: Return SPECIAL-USE flags for LSUB command.

dovecot at dovecot.org dovecot at dovecot.org
Mon Feb 24 17:32:41 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/2397adb8c1bd
changeset: 17150:2397adb8c1bd
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Feb 24 11:29:52 2014 -0600
description:
imap: Return SPECIAL-USE flags for LSUB command.

diffstat:

 src/imap/cmd-list.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 0378721ea755 -r 2397adb8c1bd src/imap/cmd-list.c
--- a/src/imap/cmd-list.c	Wed Feb 19 14:54:16 2014 -0800
+++ b/src/imap/cmd-list.c	Mon Feb 24 11:29:52 2014 -0600
@@ -435,6 +435,11 @@
 		   tb-lsub-flags workaround is explicitly set */
 		ctx->list_flags |= MAILBOX_LIST_ITER_SELECT_SUBSCRIBED |
 			MAILBOX_LIST_ITER_SELECT_RECURSIVEMATCH;
+		/* Return SPECIAL-USE flags for LSUB anyway. Outlook 2013
+		   does this and since it's not expensive for us to return
+		   them, it's not worth the trouble of adding an explicit
+		   workaround setting. */
+		ctx->list_flags |= MAILBOX_LIST_ITER_RETURN_SPECIALUSE;
 		if ((cmd->client->set->parsed_workarounds &
 		     WORKAROUND_TB_LSUB_FLAGS) == 0)
 			ctx->list_flags |= MAILBOX_LIST_ITER_RETURN_NO_FLAGS;


More information about the dovecot-cvs mailing list