dovecot-2.1: imapc: Don't crash when trying to use imapc's subsc...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Sep 6 17:29:50 EEST 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/7ae9c4aa5edb
changeset: 13410:7ae9c4aa5edb
user: Timo Sirainen <tss at iki.fi>
date: Tue Sep 06 17:29:38 2011 +0300
description:
imapc: Don't crash when trying to use imapc's subscription list for another namespace.
diffstat:
src/lib-storage/index/imapc/imapc-list.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r af6a6da91978 -r 7ae9c4aa5edb src/lib-storage/index/imapc/imapc-list.c
--- a/src/lib-storage/index/imapc/imapc-list.c Tue Sep 06 17:03:55 2011 +0300
+++ b/src/lib-storage/index/imapc/imapc-list.c Tue Sep 06 17:29:38 2011 +0300
@@ -417,11 +417,18 @@
struct imapc_mailbox_list *src_list =
(struct imapc_mailbox_list *)_src_list;
struct imapc_simple_context ctx;
+ char sep;
i_assert(src_list->tmp_subscriptions == NULL);
- if (src_list->refreshed_subscriptions)
+ if (src_list->refreshed_subscriptions) {
+ if (dest_list->subscriptions == NULL) {
+ sep = mailbox_list_get_hierarchy_sep(dest_list);
+ dest_list->subscriptions =
+ mailbox_tree_init(sep);
+ }
return 0;
+ }
if (src_list->sep == '\0')
(void)mailbox_list_get_hierarchy_sep(_src_list);
More information about the dovecot-cvs
mailing list