dovecot: Mailbox listing was broken if namespace had a prefix.
dovecot at dovecot.org
dovecot at dovecot.org
Sat Oct 27 22:42:37 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/80419a82081f
changeset: 6632:80419a82081f
user: Timo Sirainen <tss at iki.fi>
date: Sat Oct 27 22:42:33 2007 +0300
description:
Mailbox listing was broken if namespace had a prefix.
diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
src/lib-storage/list/mailbox-list-maildir-iter.c | 5 +++--
diffs (15 lines):
diff -r 0dd9b91fd52c -r 80419a82081f src/lib-storage/list/mailbox-list-maildir-iter.c
--- a/src/lib-storage/list/mailbox-list-maildir-iter.c Sat Oct 27 22:12:57 2007 +0300
+++ b/src/lib-storage/list/mailbox-list-maildir-iter.c Sat Oct 27 22:42:33 2007 +0300
@@ -57,8 +57,9 @@ static void maildir_fill_parents(struct
if (imap_match(glob, mailbox_c) != IMAP_MATCH_YES)
continue;
- if (*ns_prefix != '\0' &&
- strncmp(mailbox_c, ns_prefix, ns_prefix_len - 1) == 0) {
+ if (*ns_prefix != '\0' && str_len(mailbox) == ns_prefix_len-1 &&
+ strncmp(mailbox_c, ns_prefix, ns_prefix_len - 1) == 0 &&
+ mailbox_c[ns_prefix_len-1] == hierarchy_sep) {
/* don't return matches to namespace prefix itself */
continue;
}
More information about the dovecot-cvs
mailing list