dovecot-2.1: stats: Export also username for commands.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Sep 15 23:39:47 EEST 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/61d3544f8fdf
changeset: 13464:61d3544f8fdf
user: Timo Sirainen <tss at iki.fi>
date: Thu Sep 15 23:39:33 2011 +0300
description:
stats: Export also username for commands.
diffstat:
src/stats/client-export.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 309a707c22c0 -r 61d3544f8fdf src/stats/client-export.c
--- a/src/stats/client-export.c Thu Sep 15 12:20:55 2011 +0300
+++ b/src/stats/client-export.c Thu Sep 15 23:39:33 2011 +0300
@@ -256,7 +256,7 @@
if (!cmd->header_sent) {
o_stream_send_str(client->output,
- "cmd\targs\tsession\tlast_update"MAIL_STATS_HEADER);
+ "cmd\targs\tsession\tuser\tlast_update"MAIL_STATS_HEADER);
cmd->header_sent = TRUE;
}
@@ -275,6 +275,9 @@
T_BEGIN {
str_append(cmd->str,
guid_128_to_string(command->session->guid));
+ str_append_c(cmd->str, '\t');
+ str_tabescape_write(cmd->str,
+ command->session->user->name);
} T_END;
client_export_timeval(cmd->str, &command->last_update);
client_export_mail_stats(cmd->str, &command->stats);
More information about the dovecot-cvs
mailing list