[dovecot-cvs] dovecot/src/deliver deliver.c,1.50,1.51
tss at dovecot.org
tss at dovecot.org
Thu Feb 22 14:36:05 UTC 2007
Update of /var/lib/cvs/dovecot/src/deliver
In directory talvi:/tmp/cvs-serv15794/deliver
Modified Files:
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.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- deliver.c 19 Feb 2007 14:27:17 -0000 1.50
+++ deliver.c 22 Feb 2007 14:36:01 -0000 1.51
@@ -613,11 +613,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