dovecot-2.1: lib-storage: mailbox_list_get_vname() no longer tre...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Dec 10 07:07:20 EET 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/5366e59d573f
changeset: 13834:5366e59d573f
user: Timo Sirainen <tss at iki.fi>
date: Sat Dec 10 07:03:09 2011 +0200
description:
lib-storage: mailbox_list_get_vname() no longer treats INBOX case insensitively.
The INBOX vname is case sensitive, the INBOX storage_name isn't, otherwise
it's not possible to access <ns prefix>/inBox cased mailboxes.
diffstat:
src/lib-storage/mailbox-list.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (19 lines):
diff -r 8a63f621bd2e -r 5366e59d573f src/lib-storage/mailbox-list.c
--- a/src/lib-storage/mailbox-list.c Fri Dec 09 18:57:53 2011 +0200
+++ b/src/lib-storage/mailbox-list.c Sat Dec 10 07:03:09 2011 +0200
@@ -486,10 +486,12 @@
char list_sep, ns_sep, *ret;
if ((list->ns->flags & NAMESPACE_FLAG_INBOX_USER) != 0 &&
- strcasecmp(vname, "INBOX") == 0 &&
+ strcmp(vname, "INBOX") == 0 &&
list->ns->user == list->ns->owner) {
- /* user's INBOX - use as-is */
- return "INBOX";
+ /* user's INBOX - use as-is. NOTE: don't do case-insensitive
+ comparison, otherwise we can't differentiate between INBOX
+ and <ns prefix>/inBox. */
+ return vname;
}
if (*vname == '\0') {
/* return namespace prefix without the separator */
More information about the dovecot-cvs
mailing list