dovecot-1.1: MAILBOXDIR changes broke some setups.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Mar 18 23:28:14 EET 2009
details: http://hg.dovecot.org/dovecot-1.1/rev/e32aa3598a4f
changeset: 8208:e32aa3598a4f
user: Timo Sirainen <tss at iki.fi>
date: Wed Mar 18 17:28:09 2009 -0400
description:
MAILBOXDIR changes broke some setups.
diffstat:
1 file changed, 10 insertions(+), 9 deletions(-)
src/lib-storage/mailbox-list.c | 19 ++++++++++---------
diffs (36 lines):
diff -r c81c2506f824 -r e32aa3598a4f src/lib-storage/mailbox-list.c
--- a/src/lib-storage/mailbox-list.c Wed Mar 18 14:10:08 2009 -0400
+++ b/src/lib-storage/mailbox-list.c Wed Mar 18 17:28:09 2009 -0400
@@ -161,13 +161,6 @@ int mailbox_list_settings_parse(const ch
if (set->index_dir != NULL && strcmp(set->index_dir, "MEMORY") == 0)
set->index_dir = "";
-
- if (set->mailbox_dir_name == NULL)
- set->mailbox_dir_name = "";
- else if (set->mailbox_dir_name[strlen(set->mailbox_dir_name)-1] != '/') {
- set->mailbox_dir_name =
- t_strconcat(set->mailbox_dir_name, "/", NULL);
- }
return 0;
}
@@ -197,8 +190,16 @@ void mailbox_list_init(struct mailbox_li
list->set.subscription_fname =
p_strdup(list->pool, set->subscription_fname);
list->set.maildir_name = p_strdup(list->pool, set->maildir_name);
- list->set.mailbox_dir_name =
- p_strdup(list->pool, set->mailbox_dir_name);
+
+ if (set->mailbox_dir_name == NULL)
+ list->set.mailbox_dir_name = "";
+ else if (set->mailbox_dir_name[strlen(set->mailbox_dir_name)-1] == '/') {
+ list->set.mailbox_dir_name =
+ p_strdup(list->pool, set->mailbox_dir_name);
+ } else {
+ list->set.mailbox_dir_name =
+ p_strconcat(list->pool, set->mailbox_dir_name, "/", NULL);
+ }
list->set.mail_storage_flags = set->mail_storage_flags;
list->set.lock_method = set->lock_method;
More information about the dovecot-cvs
mailing list