[dovecot-cvs] dovecot/src/deliver deliver.c,1.20.2.29,1.20.2.30

tss at dovecot.org tss at dovecot.org
Thu Feb 22 14:36:00 UTC 2007


Update of /var/lib/cvs/dovecot/src/deliver
In directory talvi:/tmp/cvs-serv15806/deliver

Modified Files:
      Tag: branch_1_0
	deliver.c 
Log Message:
Don't compare to PACKAGE_VERSION in lib/ core directly, rather make
module_dir_load() have the version string as parameter. Plugin version
checks can be skipped with version_ignore=yes.



Index: deliver.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/deliver/deliver.c,v
retrieving revision 1.20.2.29
retrieving revision 1.20.2.30
diff -u -d -r1.20.2.29 -r1.20.2.30
--- deliver.c	19 Feb 2007 14:27:14 -0000	1.20.2.29
+++ deliver.c	22 Feb 2007 14:35:58 -0000	1.20.2.30
@@ -615,11 +615,15 @@
 		modules = NULL;
 	else {
 		const char *plugin_dir = getenv("MAIL_PLUGIN_DIR");
+		const char *version;
 
 		if (plugin_dir == NULL)
 			plugin_dir = MODULEDIR"/lda";
+
+		version = getenv("VERSION_IGNORE") != NULL ?
+			NULL : PACKAGE_VERSION;
 		modules = module_dir_load(plugin_dir, getenv("MAIL_PLUGINS"),
-					  TRUE);
+					  TRUE, version);
 		module_dir_init(modules);
 	}
 



More information about the dovecot-cvs mailing list