dovecot-1.2: When :MAILBOXDIR= was empty, we might have appended...
dovecot at dovecot.org
dovecot at dovecot.org
Fri May 1 03:00:28 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/afc1b0ef120d
changeset: 8999:afc1b0ef120d
user: Timo Sirainen <tss at iki.fi>
date: Thu Apr 30 20:00:09 2009 -0400
description:
When :MAILBOXDIR= was empty, we might have appended extra '/' to it, which caused problems.
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/mailbox-list.c | 2 +-
diffs (12 lines):
diff -r 86cdd80b9b11 -r afc1b0ef120d src/lib-storage/mailbox-list.c
--- a/src/lib-storage/mailbox-list.c Thu Apr 30 19:59:12 2009 -0400
+++ b/src/lib-storage/mailbox-list.c Thu Apr 30 20:00:09 2009 -0400
@@ -215,7 +215,7 @@ void mailbox_list_init(struct mailbox_li
(list->props & MAILBOX_LIST_PROP_NO_MAILDIR_NAME) != 0 ? "" :
p_strdup(list->pool, set->maildir_name);
- if (set->mailbox_dir_name == NULL)
+ if (set->mailbox_dir_name == NULL || *set->mailbox_dir_name == '\0')
list->set.mailbox_dir_name = "";
else if (set->mailbox_dir_name[strlen(set->mailbox_dir_name)-1] == '/') {
list->set.mailbox_dir_name =
More information about the dovecot-cvs
mailing list