dovecot-2.1: pop3c: Fixed to work without indexes.
dovecot at dovecot.org
dovecot at dovecot.org
Sat Jan 21 18:57:41 EET 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/b6f9fa12dca6
changeset: 13980:b6f9fa12dca6
user: Timo Sirainen <tss at iki.fi>
date: Sat Jan 21 18:57:31 2012 +0200
description:
pop3c: Fixed to work without indexes.
diffstat:
src/lib-storage/index/pop3c/pop3c-storage.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r 32cf5ed72e2d -r b6f9fa12dca6 src/lib-storage/index/pop3c/pop3c-storage.c
--- a/src/lib-storage/index/pop3c/pop3c-storage.c Sat Jan 21 18:31:25 2012 +0200
+++ b/src/lib-storage/index/pop3c/pop3c-storage.c Sat Jan 21 18:57:31 2012 +0200
@@ -89,7 +89,8 @@
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 @@
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,
More information about the dovecot-cvs
mailing list