dovecot-2.2: maildir++: Fixed mail_shared_explicit_inbox=no

dovecot at dovecot.org dovecot at dovecot.org
Mon May 6 15:17:54 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/3de486622779
changeset: 16330:3de486622779
user:      Timo Sirainen <tss at iki.fi>
date:      Mon May 06 15:17:49 2013 +0300
description:
maildir++: Fixed mail_shared_explicit_inbox=no

diffstat:

 src/lib-storage/list/mailbox-list-maildir-iter.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r e45bb6b86e3c -r 3de486622779 src/lib-storage/list/mailbox-list-maildir-iter.c
--- a/src/lib-storage/list/mailbox-list-maildir-iter.c	Mon May 06 15:04:57 2013 +0300
+++ b/src/lib-storage/list/mailbox-list-maildir-iter.c	Mon May 06 15:17:49 2013 +0300
@@ -372,6 +372,7 @@
 	struct mail_namespace *ns = list->ns;
 	DIR *dirp;
 	struct dirent *d;
+	const char *vname;
 	int ret = 0;
 
 	dirp = opendir(ctx->dir);
@@ -409,8 +410,8 @@
 		return maildir_fill_inbox(ctx, glob, "INBOX", update_only);
 	} else if ((ns->flags & NAMESPACE_FLAG_INBOX_ANY) != 0) {
 		/* show shared INBOX. */
-		return maildir_fill_inbox(ctx, glob,
-			t_strconcat(ns->prefix, "INBOX", NULL), update_only);
+		vname = mailbox_list_get_vname(ns->list, "INBOX");
+		return maildir_fill_inbox(ctx, glob, vname, update_only);
 	} else {
 		return 0;
 	}


More information about the dovecot-cvs mailing list