diff src/imap/cmd-list.c @ 9276:13fa572535f0 HEAD

Allow namespace prefix to be opened as mailbox, if it already exists.
author Timo Sirainen <tss@iki.fi>
date Sun, 02 Aug 2009 23:01:04 -0400
parents db2fdf3529ac
children a0fa514d92f0
line wrap: on
line diff
--- a/src/imap/cmd-list.c	Sun Aug 02 13:53:32 2009 -0400
+++ b/src/imap/cmd-list.c	Sun Aug 02 23:01:04 2009 -0400
@@ -269,6 +269,8 @@
 
 		ctx->inbox_found = TRUE;
 		flags = list_get_inbox_flags(ctx);
+	} else if (mailbox_list_mailbox(ctx->ns->list, "", &flags) > 0) {
+		/* mailbox with namespace prefix exists */
 	} else {
 		flags = MAILBOX_NONEXISTENT;
 	}