dovecot-2.0: lib-storage: MAILBOX_LIST_PATH_TYPE_ALT_DIR path lo...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jul 1 19:19:47 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/636fb64394a5
changeset: 11678:636fb64394a5
user: Timo Sirainen <tss at iki.fi>
date: Thu Jul 01 17:18:49 2010 +0100
description:
lib-storage: MAILBOX_LIST_PATH_TYPE_ALT_DIR path lookups weren't returning NULL with non-dbox.
diffstat:
src/lib-storage/list/mailbox-list-fs.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r b4f029f7793a -r 636fb64394a5 src/lib-storage/list/mailbox-list-fs.c
--- a/src/lib-storage/list/mailbox-list-fs.c Thu Jul 01 17:05:22 2010 +0100
+++ b/src/lib-storage/list/mailbox-list-fs.c Thu Jul 01 17:18:49 2010 +0100
@@ -160,9 +160,12 @@
set->mailbox_dir_name, name);
break;
case MAILBOX_LIST_PATH_TYPE_ALT_DIR:
+ if (set->alt_dir == NULL)
+ return NULL;
if (*set->maildir_name != '\0')
return t_strdup_printf("%s/%s%s", set->alt_dir,
set->mailbox_dir_name, name);
+ root_dir = set->alt_dir;
break;
case MAILBOX_LIST_PATH_TYPE_MAILBOX:
break;
More information about the dovecot-cvs
mailing list