dovecot-2.2: layout=index: Don't return a path for \Noselect mai...

dovecot at dovecot.org dovecot at dovecot.org
Wed Mar 20 17:44:16 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/4649782a4213
changeset: 16059:4649782a4213
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Mar 20 17:44:07 2013 +0200
description:
layout=index: Don't return a path for \Noselect mailboxes.

diffstat:

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

diffs (13 lines):

diff -r d44ae1527bc0 -r 4649782a4213 src/lib-storage/list/mailbox-list-index-backend.c
--- a/src/lib-storage/list/mailbox-list-index-backend.c	Wed Mar 20 17:43:32 2013 +0200
+++ b/src/lib-storage/list/mailbox-list-index-backend.c	Wed Mar 20 17:44:07 2013 +0200
@@ -140,7 +140,8 @@
 	if (!mail_index_lookup_seq(view, node->uid, &seq))
 		i_panic("mailbox list index: lost uid=%u", node->uid);
 	if (!mailbox_list_index_status(_list, view, seq, 0,
-				       &status, mailbox_guid)) {
+				       &status, mailbox_guid) ||
+	    guid_128_is_empty(mailbox_guid)) {
 		mailbox_list_set_error(_list, MAIL_ERROR_NOTFOUND,
 				       T_MAIL_ERR_MAILBOX_NOT_FOUND(name));
 		ret = -1;


More information about the dovecot-cvs mailing list