]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: Return SPECIAL-USE flags for LSUB command.
authorTimo Sirainen <tss@iki.fi>
Mon, 24 Feb 2014 17:29:52 +0000 (11:29 -0600)
committerTimo Sirainen <tss@iki.fi>
Mon, 24 Feb 2014 17:29:52 +0000 (11:29 -0600)
src/imap/cmd-list.c

index 4388690f035d7eb873aeb3ef324461b824914a2f..6e54facc052d18fd3d18fadfe452cdc838f0ee71 100644 (file)
@@ -435,6 +435,11 @@ bool cmd_list_full(struct client_command_context *cmd, bool lsub)
                   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;