dovecot-2.2: lib-storage: raw storage allows opening mails with ...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Mar 4 15:12:29 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/cda5cb307619
changeset: 15991:cda5cb307619
user: Timo Sirainen <tss at iki.fi>
date: Mon Mar 04 15:12:17 2013 +0200
description:
lib-storage: raw storage allows opening mails with absolute paths again.
Fixed dovecot-lda -p parameter.
diffstat:
src/lib-storage/index/raw/raw-storage.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diffs (24 lines):
diff -r 65705d9d94f1 -r cda5cb307619 src/lib-storage/index/raw/raw-storage.c
--- a/src/lib-storage/index/raw/raw-storage.c Mon Mar 04 14:59:13 2013 +0200
+++ b/src/lib-storage/index/raw/raw-storage.c Mon Mar 04 15:12:17 2013 +0200
@@ -19,6 +19,7 @@
struct mail_user *user;
struct mail_namespace *ns;
struct mail_namespace_settings *ns_set;
+ struct mail_storage_settings *mail_set;
const char *error;
user = mail_user_alloc("raw mail user", set_info, set);
@@ -38,6 +39,12 @@
ns->flags &= ~NAMESPACE_FLAG_INBOX_USER;
ns->flags |= NAMESPACE_FLAG_NOQUOTA | NAMESPACE_FLAG_NOACL;
ns->set = ns_set;
+ /* absolute paths are ok with raw storage */
+ mail_set = p_new(user->pool, struct mail_storage_settings, 1);
+ *mail_set = *ns->mail_set;
+ mail_set->mail_full_filesystem_access = TRUE;
+ ns->mail_set = mail_set;
+
if (mail_storage_create(ns, "raw", 0, &error) < 0)
i_fatal("Couldn't create internal raw storage: %s", error);
return user;
More information about the dovecot-cvs
mailing list