dovecot-1.2: expire-tool: --test now shows the username in info ...

dovecot at dovecot.org dovecot at dovecot.org
Sun Oct 5 17:00:01 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/cc5e5c43ebfe
changeset: 8240:cc5e5c43ebfe
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Oct 05 16:59:58 2008 +0300
description:
expire-tool: --test now shows the username in info messages.

diffstat:

1 file changed, 7 insertions(+), 5 deletions(-)
src/plugins/expire/expire-tool.c |   12 +++++++-----

diffs (43 lines):

diff -r d6d7a56f7160 -r cc5e5c43ebfe src/plugins/expire/expire-tool.c
--- a/src/plugins/expire/expire-tool.c	Sun Oct 05 16:50:41 2008 +0300
+++ b/src/plugins/expire/expire-tool.c	Sun Oct 05 16:59:58 2008 +0300
@@ -230,8 +230,10 @@ static void expire_run(bool testrun)
 			/* we're no longer expunging old messages from here */
 			if (!testrun)
 				dict_unset(trans, key);
-			else
-				i_info("%s: removed from config", mailbox);
+			else {
+				i_info("%s: mailbox '%s' removed from config",
+				       userp, mailbox);
+			}
 			continue;
 		}
 		if (time(NULL) < (time_t)strtoul(value, NULL, 10)) {
@@ -239,7 +241,7 @@ static void expire_run(bool testrun)
 			   so stop processing */
 			if (testrun) {
 				i_info("%s: stop, expire time in future: %s",
-				       mailbox, value);
+				       userp, value);
 			}
 			break;
 		}
@@ -260,7 +262,7 @@ static void expire_run(bool testrun)
 			if (!testrun)
 				dict_unset(trans, key);
 			else
-				i_info("%s: no messages left", mailbox);
+				i_info("%s: no messages left", userp);
 		} else {
 			char new_value[MAX_INT_STRLEN];
 
@@ -274,7 +276,7 @@ static void expire_run(bool testrun)
 				dict_set(trans, key, new_value);
 			else {
 				i_info("%s: timestamp %s -> %s",
-				       mailbox, value, new_value);
+				       userp, value, new_value);
 			}
 		}
 	}


More information about the dovecot-cvs mailing list