[dovecot-cvs] dovecot: Complain about missing pop3_uidl_format if pop3 is enab...

dovecot at dovecot.org dovecot at dovecot.org
Tue May 22 02:17:24 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/21fbdc921152
changeset: 5638:21fbdc921152
user:      Timo Sirainen <tss at iki.fi>
date:      Tue May 22 02:17:17 2007 +0300
description:
Complain about missing pop3_uidl_format if pop3 is enabled.

diffstat:

1 file changed, 6 insertions(+)
src/master/master-settings.c |    6 ++++++

diffs (16 lines):

diff -r 9fdd9c18c879 -r 21fbdc921152 src/master/master-settings.c
--- 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 @@ static bool settings_verify(struct setti
 	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, ' '));


More information about the dovecot-cvs mailing list