dovecot: Allow using --exec-mail imap/pop3 even if imap/pop3 isn...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jul 11 01:42:14 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/6c3c54dc67fc
changeset: 5943:6c3c54dc67fc
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jul 11 01:41:49 2007 +0300
description:
Allow using --exec-mail imap/pop3 even if imap/pop3 isn't in protocols
setting.

diffstat:

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

diffs (23 lines):

diff -r bf536b8dbc51 -r 6c3c54dc67fc src/master/master-settings.c
--- a/src/master/master-settings.c	Tue Jul 10 22:29:21 2007 +0300
+++ b/src/master/master-settings.c	Wed Jul 11 01:41:49 2007 +0300
@@ -1423,7 +1423,9 @@ bool master_settings_read(const char *pa
 			i_error("No protocols given in configuration file");
 			return FALSE;
 		}
-		if (!settings_is_active(server->imap)) {
+		/* --exec-mail is used if nochecks=TRUE. Allow it regardless
+		   of what's in protocols setting. */
+		if (!settings_is_active(server->imap) && !nochecks) {
 			if (strcmp(server->imap->protocols, "none") == 0) {
 				if (!settings_fix(server->imap, nochecks,
 						  nofixes))
@@ -1437,7 +1439,7 @@ bool master_settings_read(const char *pa
 			server->defaults = server->imap;
 		}
 
-		if (!settings_is_active(server->pop3))
+		if (!settings_is_active(server->pop3) && !nochecks)
 			server->pop3 = NULL;
 		else {
 			if (!settings_fix(server->pop3, nochecks, nofixes))


More information about the dovecot-cvs mailing list