diff src/plugins/pop3-migration/pop3-migration-plugin.c @ 15199:73916b7be94e

Plugin ABI version checking improvements. Previously the plugin version was checked against the version string returned by the currently running Dovecot master process, not necessarily the same as the binary. Also version_ignore=yes setting skipped the version check entirely. Now there's a new DOVECOT_ABI_VERSION macro that can (at least in theory) be updated only when the ABI actually changes. The version is in format "2.2.ABIv1(2.2.15)", where the (2.2.15) would be the actual Dovecot version number that gets ignored when comparing the strings. Also now the plugin version is compared to the actually running binary's ABI, not the master's version, and it can't be ignored with a setting.
author Timo Sirainen <tss@iki.fi>
date Fri, 12 Oct 2012 00:51:41 +0300
parents d3db2ba15d00
children ca10d2e8d8e3
line wrap: on
line diff
--- a/src/plugins/pop3-migration/pop3-migration-plugin.c	Fri Oct 12 00:22:19 2012 +0300
+++ b/src/plugins/pop3-migration/pop3-migration-plugin.c	Fri Oct 12 00:51:41 2012 +0300
@@ -72,7 +72,7 @@
 	"X-UID",
 	"X-UIDL"
 };
-const char *pop3_migration_plugin_version = DOVECOT_VERSION;
+const char *pop3_migration_plugin_version = DOVECOT_ABI_VERSION;
 
 static MODULE_CONTEXT_DEFINE_INIT(pop3_migration_storage_module,
 				  &mail_storage_module_register);