[dovecot-cvs] dovecot/src/lib-storage mail-storage.c,1.42,1.43

cras at dovecot.org cras at dovecot.org
Fri Aug 19 11:43:23 EEST 2005


Update of /var/lib/cvs/dovecot/src/lib-storage
In directory talvi:/tmp/cvs-serv1341/lib-storage

Modified Files:
	mail-storage.c 
Log Message:
If autodetection failed, give an error message so we don't just get "Failed
to create storage with data .."



Index: mail-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mail-storage.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- mail-storage.c	7 Aug 2005 11:41:26 -0000	1.42
+++ mail-storage.c	19 Aug 2005 08:43:20 -0000	1.43
@@ -131,7 +131,12 @@
 					      lock_method);
 	} else {
 		storage = mail_storage_autodetect(data, flags);
-		if (storage != NULL) {
+		if (storage == NULL) {
+			i_error("Ambiguous mail location setting, "
+				"don't know what to do with it: %s "
+				"(try prefixing it with mbox: or maildir:)",
+				data);
+		} else {
 			storage = storage->v.create(data, user, flags,
 						    lock_method);
 		}



More information about the dovecot-cvs mailing list