dovecot-2.1: lib-storage: When configuring mailbox INBOX {}, mak...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Oct 3 05:43:35 EEST 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/16f2f71c91b1
changeset: 14753:16f2f71c91b1
user: Timo Sirainen <tss at iki.fi>
date: Wed Oct 03 05:42:55 2012 +0300
description:
lib-storage: When configuring mailbox INBOX {}, make sure INBOX is uppercased.
diffstat:
src/lib-storage/mailbox-list-iter.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 4308d1794328 -r 16f2f71c91b1 src/lib-storage/mailbox-list-iter.c
--- a/src/lib-storage/mailbox-list-iter.c Wed Oct 03 05:41:46 2012 +0300
+++ b/src/lib-storage/mailbox-list-iter.c Wed Oct 03 05:42:55 2012 +0300
@@ -137,6 +137,11 @@
autobox = array_append_space(&actx->boxes);
autobox->name = set->name;
autobox->set = set;
+ if (strcasecmp(autobox->name, "INBOX") == 0) {
+ /* make sure duplicate INBOX/Inbox/etc.
+ won't get created */
+ autobox->name = "INBOX";
+ }
}
}
}
More information about the dovecot-cvs
mailing list