dovecot-2.1: doveadm: Changes for previous expire plugin changes...

dovecot at dovecot.org dovecot at dovecot.org
Sun Feb 12 05:18:06 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/b77aa92e3931
changeset: 14122:b77aa92e3931
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Feb 12 05:17:46 2012 +0200
description:
doveadm: Changes for previous expire plugin changes to actually work.

diffstat:

 src/doveadm/doveadm-mail.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 5f96fb9f079b -r b77aa92e3931 src/doveadm/doveadm-mail.c
--- a/src/doveadm/doveadm-mail.c	Sun Feb 12 05:16:43 2012 +0200
+++ b/src/doveadm/doveadm-mail.c	Sun Feb 12 05:17:46 2012 +0200
@@ -288,14 +288,15 @@
 	lib_signals_set_handler(SIGTERM, 0, sig_die, NULL);
 
 	ctx->v.init(ctx, (const void *)argv);
-	if (hook_doveadm_mail_init != NULL)
-		hook_doveadm_mail_init(ctx);
 
 	user_count = mail_storage_service_all_init(ctx->storage_service);
 	n = user_count / 10000;
 	for (interval = 10; n > 0 && interval < 1000; interval *= 10)
 		n /= 10;
 
+	if (hook_doveadm_mail_init != NULL)
+		hook_doveadm_mail_init(ctx);
+
 	user_idx = 0;
 	while ((ret = ctx->v.get_next_user(ctx, &user)) > 0) {
 		if (wildcard_user != NULL) {


More information about the dovecot-cvs mailing list