dovecot-2.0: Maildir++: When opening namespace prefix as mailbox...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Sep 29 17:46:36 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/c992b1942e08
changeset: 12198:c992b1942e08
user: Timo Sirainen <tss at iki.fi>
date: Wed Sep 29 15:46:32 2010 +0100
description:
Maildir++: When opening namespace prefix as mailbox, don't add extra '/' to path names.
diffstat:
src/lib-storage/list/mailbox-list-maildir.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r 002a702cf06a -r c992b1942e08 src/lib-storage/list/mailbox-list-maildir.c
--- a/src/lib-storage/list/mailbox-list-maildir.c Tue Sep 28 19:07:33 2010 +0100
+++ b/src/lib-storage/list/mailbox-list-maildir.c Wed Sep 29 15:46:32 2010 +0100
@@ -64,9 +64,11 @@
maildir_list_get_dirname_path(struct mailbox_list *list, const char *dir,
const char *name)
{
- if (strcmp(list->name, MAILBOX_LIST_NAME_IMAPDIR) == 0 || *name == '\0')
+ if (*name == '\0')
+ return dir;
+ else if (list->name == imapdir_mailbox_list.name)
return t_strdup_printf("%s/%s", dir, name);
-
+
return t_strdup_printf("%s/%c%s", dir, list->hierarchy_sep, name);
}
More information about the dovecot-cvs
mailing list