[dovecot-cvs] dovecot/src/master master-settings.c,1.143,1.144

tss at dovecot.org tss at dovecot.org
Sun Nov 5 17:55:52 UTC 2006


Update of /var/lib/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv28139

Modified Files:
	master-settings.c 
Log Message:
If both mail_location and default_mail_env are set in the config file, give
an error.



Index: master-settings.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/master-settings.c,v
retrieving revision 1.143
retrieving revision 1.144
diff -u -d -r1.143 -r1.144
--- master-settings.c	5 Nov 2006 10:58:57 -0000	1.143
+++ master-settings.c	5 Nov 2006 17:55:49 -0000	1.144
@@ -874,6 +874,10 @@
 	if (*set->mail_location == '\0') {
 		/* keep this for backwards compatibility */
 		set->mail_location = set->default_mail_env;
+	} else if (*set->default_mail_env != '\0') {
+		i_error("Both mail_location and default_mail_env set. "
+			"Use only one of them.");
+		return FALSE;
 	}
 	return nochecks ? TRUE : settings_verify(set);
 }



More information about the dovecot-cvs mailing list