From: Timo Sirainen Date: Sat, 21 Jan 2012 16:57:31 +0000 (+0200) Subject: pop3c: Fixed to work without indexes. X-Git-Tag: 2.1.rc4~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56aa97d74071f3a2987140c2ff1cfd5a59cb35aa;p=thirdparty%2Fdovecot%2Fcore.git pop3c: Fixed to work without indexes. --- diff --git a/src/lib-storage/index/pop3c/pop3c-storage.c b/src/lib-storage/index/pop3c/pop3c-storage.c index 6b84398704..c97b5a2684 100644 --- a/src/lib-storage/index/pop3c/pop3c-storage.c +++ b/src/lib-storage/index/pop3c/pop3c-storage.c @@ -89,7 +89,8 @@ pop3c_storage_get_list_settings(const struct mail_namespace *ns, struct mailbox_list_settings *set) { set->layout = MAILBOX_LIST_NAME_FS; - if (*set->root_dir != '\0' && set->index_dir == NULL) { + if (set->root_dir != NULL && *set->root_dir != '\0' && + set->index_dir == NULL) { /* we don't really care about root_dir, but we just need to get index_dir autocreated. it happens when index_dir differs from root_dir. */ @@ -221,8 +222,7 @@ static bool pop3c_storage_is_inconsistent(struct mailbox *box) struct mail_storage pop3c_storage = { .name = POP3C_STORAGE_NAME, - .class_flags = MAIL_STORAGE_CLASS_FLAG_MAILBOX_IS_FILE | - MAIL_STORAGE_CLASS_FLAG_OPEN_STREAMS, + .class_flags = MAIL_STORAGE_CLASS_FLAG_NO_ROOT, .v = { pop3c_get_setting_parser_info,