dovecot-2.2: pop3: When creating session lock file, prefer to wr...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Nov 18 11:12:50 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/fa46e882e8bf
changeset: 19390:fa46e882e8bf
user: Timo Sirainen <tss at iki.fi>
date: Wed Nov 18 13:12:23 2015 +0200
description:
pop3: When creating session lock file, prefer to write it to the index root dir.
This is especially important for mail storage backends that don't have a mail
root directory.
diffstat:
src/pop3/pop3-client.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r 5528fd720619 -r fa46e882e8bf src/pop3/pop3-client.c
--- a/src/pop3/pop3-client.c Wed Nov 18 13:08:57 2015 +0200
+++ b/src/pop3/pop3-client.c Wed Nov 18 13:12:23 2015 +0200
@@ -339,9 +339,9 @@
int ret;
if (!mailbox_list_get_root_path(client->inbox_ns->list,
- MAILBOX_LIST_PATH_TYPE_DIR, &dir) &&
+ MAILBOX_LIST_PATH_TYPE_INDEX, &dir) &&
!mailbox_list_get_root_path(client->inbox_ns->list,
- MAILBOX_LIST_PATH_TYPE_INDEX, &dir)) {
+ MAILBOX_LIST_PATH_TYPE_DIR, &dir)) {
i_error("pop3_lock_session: Storage has no root/index directory, "
"can't create a POP3 session lock file");
return -1;
More information about the dovecot-cvs
mailing list