[dovecot-cvs] dovecot/src/pop3 main.c,1.40,1.41

cras at dovecot.org cras at dovecot.org
Sun Feb 26 14:16:22 EET 2006


Update of /var/lib/cvs/dovecot/src/pop3
In directory talvi:/tmp/cvs-serv21931/src/pop3

Modified Files:
	main.c 
Log Message:
Replaced mail_use_modules and mail_modules settings with mail_plugins and
mail_plugin_dir. Now instead of loading all plugins from the directory,
you'll have to give a list of plugins to load. If the plugin couldn't be
loaded, the process exits instead of just ignoring the problem (this is
important with ACL plugin).



Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3/main.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- main.c	2 Feb 2006 20:20:30 -0000	1.40
+++ main.c	26 Feb 2006 12:16:19 -0000	1.41
@@ -173,8 +173,14 @@
 	mail_storage_register_all();
 	clients_init();
 
-	modules = getenv("MODULE_DIR") == NULL ? NULL :
-		module_dir_load(getenv("MODULE_DIR"), TRUE);
+	if (getenv("MODULE_LIST") == NULL)
+		modules = NULL;
+	else {
+		if (getenv("MODULE_DIR") == NULL)
+			i_fatal("MODULE_LIST given but MODULE_DIR was not");
+		modules = module_dir_load(getenv("MODULE_DIR"),
+					  getenv("MODULE_LIST"), TRUE);
+	}
 
 	mail = getenv("MAIL");
 	if (mail == NULL) {



More information about the dovecot-cvs mailing list