changeset 11061:9c94f073d014 HEAD

lda, lmtp: Use layout=none for the raw mail storage. This removes the need for hardcoded /tmp dir and avoids stat(/tmp/Dovecot Delivery Mail).
author Timo Sirainen <tss@iki.fi>
date Mon, 05 Apr 2010 04:50:25 +0300
parents 6b1f08814e59
children 314f230b3a00
files src/lda/main.c src/lmtp/client.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lda/main.c	Mon Apr 05 04:49:17 2010 +0300
+++ b/src/lda/main.c	Mon Apr 05 04:50:25 2010 +0300
@@ -395,7 +395,7 @@
 		i_fatal("Raw user initialization failed: %s", errstr);
 
 	memset(&raw_ns_set, 0, sizeof(raw_ns_set));
-	raw_ns_set.location = "/tmp";
+	raw_ns_set.location = ":LAYOUT=none";
 
 	raw_ns = mail_namespaces_init_empty(raw_mail_user);
 	raw_ns->flags |= NAMESPACE_FLAG_NOQUOTA | NAMESPACE_FLAG_NOACL;
--- a/src/lmtp/client.c	Mon Apr 05 04:49:17 2010 +0300
+++ b/src/lmtp/client.c	Mon Apr 05 04:50:25 2010 +0300
@@ -137,7 +137,7 @@
 		i_fatal("Raw user initialization failed: %s", error);
 
 	memset(&raw_ns_set, 0, sizeof(raw_ns_set));
-	raw_ns_set.location = "/tmp";
+	raw_ns_set.location = ":LAYOUT=none";
 
 	raw_ns = mail_namespaces_init_empty(client->raw_mail_user);
 	raw_ns->flags |= NAMESPACE_FLAG_NOQUOTA | NAMESPACE_FLAG_NOACL;