changeset 5638:21fbdc921152 HEAD

Complain about missing pop3_uidl_format if pop3 is enabled.
author Timo Sirainen <tss@iki.fi>
date Tue, 22 May 2007 02:17:17 +0300
parents 9fdd9c18c879
children e1b3043c0d90
files src/master/master-settings.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/master/master-settings.c	Tue May 22 02:11:16 2007 +0300
+++ b/src/master/master-settings.c	Tue May 22 02:17:17 2007 +0300
@@ -626,6 +626,12 @@
 	if (!get_login_uid(set))
 		return FALSE;
 
+	if (set->protocol == MAIL_PROTOCOL_POP3 &&
+	    *set->pop3_uidl_format == '\0') {
+		i_error("POP3 enabled but pop3_uidl_format not set");
+		return FALSE;
+	}
+
 	if (access(t_strcut(set->mail_executable, ' '), X_OK) < 0) {
 		i_error("Can't use mail executable %s: %m",
 			t_strcut(set->mail_executable, ' '));