dovecot-1.2: expire-tool --test: Fixed timestamp logging.

dovecot at dovecot.org dovecot at dovecot.org
Tue Jun 16 06:14:30 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/1d343780e009
changeset: 9137:1d343780e009
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jun 15 23:14:25 2009 -0400
description:
expire-tool --test: Fixed timestamp logging.

diffstat:

1 file changed, 6 insertions(+), 4 deletions(-)
src/plugins/expire/expire-tool.c |   10 ++++++----

diffs (21 lines):

diff -r ef7c0c3b1976 -r 1d343780e009 src/plugins/expire/expire-tool.c
--- a/src/plugins/expire/expire-tool.c	Mon Jun 15 21:56:22 2009 -0400
+++ b/src/plugins/expire/expire-tool.c	Mon Jun 15 23:14:25 2009 -0400
@@ -350,11 +350,13 @@ static void expire_run(bool testrun)
 				/* no change */
 			} else if (!testrun)
 				dict_set(trans, key, new_value);
-			else {
+			else T_BEGIN {
 				i_info("%s: timestamp %s (%s) -> %s (%s)",
-				       userp, value, ctime(&expire_time),
-				       new_value, ctime(&oldest));
-			}
+				       userp, value,
+				       t_strdup(ctime(&expire_time)),
+				       new_value,
+				       t_strdup(ctime(&oldest)));
+			} T_END;
 		}
 	}
 	env_backup_free(&env_backup);


More information about the dovecot-cvs mailing list