[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-storage.c, 1.115.2.10, 1.115.2.11

tss at dovecot.org tss at dovecot.org
Mon Oct 9 18:08:06 UTC 2006


Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv16414/index/maildir

Modified Files:
      Tag: branch_1_0
	maildir-storage.c 
Log Message:
If the mail environment data contains mail format prefix, don't do any kind
of autodetection. Practically this means that mbox:/var/mail/user doesn't
work anymore.



Index: maildir-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-storage.c,v
retrieving revision 1.115.2.10
retrieving revision 1.115.2.11
diff -u -d -r1.115.2.10 -r1.115.2.11
--- maildir-storage.c	23 Aug 2006 19:44:26 -0000	1.115.2.10
+++ maildir-storage.c	9 Oct 2006 17:08:04 -0000	1.115.2.11
@@ -72,6 +72,11 @@
 	inbox_dir = root_dir = index_dir = control_dir = NULL;
 
 	if (data == NULL || *data == '\0') {
+		if ((flags & MAIL_STORAGE_FLAG_NO_AUTODETECTION) != 0) {
+			i_error("maildir: root directory not given");
+			return NULL;
+		}
+
 		/* we'll need to figure out the maildir location ourself.
 		   It's $HOME/Maildir unless we are chrooted. */
 		if ((home = getenv("HOME")) != NULL) {



More information about the dovecot-cvs mailing list