[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-storage.c, 1.129, 1.130

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


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

Modified Files:
	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.129
retrieving revision 1.130
diff -u -d -r1.129 -r1.130
--- maildir-storage.c	10 Sep 2006 12:48:26 -0000	1.129
+++ maildir-storage.c	9 Oct 2006 17:08:07 -0000	1.130
@@ -54,6 +54,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