[dovecot-cvs] dovecot/src/imap cmd-list.c,1.41,1.42

cras at dovecot.org cras at dovecot.org
Sat Sep 11 13:28:52 EEST 2004


Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv6225/imap

Modified Files:
	cmd-list.c 
Log Message:
Added MAILBOX_LIST_INBOX flag. Do the special cased INBOX handling only if
it's set.



Index: cmd-list.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-list.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- cmd-list.c	3 Sep 2004 09:52:13 -0000	1.41
+++ cmd-list.c	11 Sep 2004 10:28:50 -0000	1.42
@@ -182,6 +182,7 @@
 	struct namespace *ns = ctx->ns;
 	const char *cur_prefix, *cur_ref, *cur_mask;
 	enum imap_match_result match;
+	enum mailbox_list_flags list_flags;
 	unsigned int count;
 	size_t len;
 
@@ -288,9 +289,12 @@
 	cur_ref = namespace_fix_sep(ns, cur_ref);
 	cur_mask = namespace_fix_sep(ns, cur_mask);
 
+	list_flags = ctx->list_flags;
+	if (*ns->prefix == '\0' || ns->inbox)
+		list_flags |= MAILBOX_LIST_INBOX;
 	ctx->list_ctx = mail_storage_mailbox_list_init(ns->storage,
 						       cur_ref, cur_mask,
-						       ctx->list_flags);
+						       list_flags);
 }
 
 static int cmd_list_continue(struct client *client)



More information about the dovecot-cvs mailing list