dovecot-2.2: imapc: Allow accessing the imapc_list_prefix itself.
dovecot at dovecot.org
dovecot at dovecot.org
Sat Jun 1 03:37:32 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/92b4183ede17
changeset: 16441:92b4183ede17
user: Timo Sirainen <tss at iki.fi>
date: Sat Jun 01 03:37:21 2013 +0300
description:
imapc: Allow accessing the imapc_list_prefix itself.
diffstat:
src/lib-storage/index/imapc/imapc-list.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r 7af6795f40ed -r 92b4183ede17 src/lib-storage/index/imapc/imapc-list.c
--- a/src/lib-storage/index/imapc/imapc-list.c Sat Jun 01 03:20:15 2013 +0300
+++ b/src/lib-storage/index/imapc/imapc-list.c Sat Jun 01 03:37:21 2013 +0300
@@ -208,8 +208,8 @@
storage_name = mailbox_list_default_get_storage_name(_list, vname);
if (*prefix != '\0' && strcasecmp(storage_name, "INBOX") != 0) {
- storage_name = t_strdup_printf("%s%c%s", prefix, list->sep,
- storage_name);
+ storage_name = storage_name[0] == '\0' ? prefix :
+ t_strdup_printf("%s%c%s", prefix, list->sep, storage_name);
}
return storage_name;
}
More information about the dovecot-cvs
mailing list