dovecot: LSUB \Noselect fix

dovecot at dovecot.org dovecot at dovecot.org
Fri Jun 29 17:58:05 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/fd21588ef7aa
changeset: 5834:fd21588ef7aa
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jun 29 17:58:01 2007 +0300
description:
LSUB \Noselect fix

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/imap/cmd-list.c |    3 ++-

diffs (13 lines):

diff -r 8351aa73b4df -r fd21588ef7aa src/imap/cmd-list.c
--- a/src/imap/cmd-list.c	Fri Jun 29 17:57:33 2007 +0300
+++ b/src/imap/cmd-list.c	Fri Jun 29 17:58:01 2007 +0300
@@ -48,7 +48,8 @@ mailbox_flags2str(struct cmd_list_contex
 	    (ctx->list_flags & MAILBOX_LIST_ITER_RETURN_SUBSCRIBED) != 0)
 		str_append(str, "\\Subscribed ");
 
-	if ((flags & MAILBOX_CHILD_SUBSCRIBED) != 0 && !ctx->used_listext) {
+	if ((flags & MAILBOX_CHILD_SUBSCRIBED) != 0 &&
+	    (flags & MAILBOX_SUBSCRIBED) == 0 && !ctx->used_listext) {
 		/* LSUB uses \Noselect for this */
 		flags |= MAILBOX_NOSELECT;
 	}


More information about the dovecot-cvs mailing list