dovecot: Added %i and %o for input/output bytes to pop3_logout_f...

dovecot at dovecot.org dovecot at dovecot.org
Fri Jul 13 02:42:22 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/433745f10290
changeset: 5979:433745f10290
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jul 13 02:37:19 2007 +0300
description:
Added %i and %o for input/output bytes to pop3_logout_format.

diffstat:

2 files changed, 6 insertions(+)
dovecot-example.conf |    2 ++
src/pop3/client.c    |    4 ++++

diffs (33 lines):

diff -r 28836909b3b0 -r 433745f10290 dovecot-example.conf
--- a/dovecot-example.conf	Fri Jul 13 01:46:27 2007 +0300
+++ b/dovecot-example.conf	Fri Jul 13 02:37:19 2007 +0300
@@ -638,6 +638,8 @@ protocol pop3 {
   #pop3_uidl_format = 
 
   # POP3 logout format string:
+  #  %i - total number of bytes read from client
+  #  %o - total number of bytes sent to client
   #  %t - number of TOP commands
   #  %p - number of bytes sent to client as a result of TOP command
   #  %r - number of RETR commands
diff -r 28836909b3b0 -r 433745f10290 src/pop3/client.c
--- a/src/pop3/client.c	Fri Jul 13 01:46:27 2007 +0300
+++ b/src/pop3/client.c	Fri Jul 13 02:37:19 2007 +0300
@@ -202,6 +202,8 @@ static const char *client_stats(struct c
 		{ 'd', NULL },
 		{ 'm', NULL },
 		{ 's', NULL },
+		{ 'i', NULL },
+		{ 'o', NULL },
 		{ '\0', NULL }
 	};
 	struct var_expand_table *tab;
@@ -217,6 +219,8 @@ static const char *client_stats(struct c
 	tab[4].value = dec2str(client->expunged_count);
 	tab[5].value = dec2str(client->messages_count);
 	tab[6].value = dec2str(client->total_size);
+	tab[7].value = dec2str(client->input->v_offset);
+	tab[8].value = dec2str(client->output->offset);
 
 	str = t_str_new(128);
 	var_expand(str, logout_format, tab);


More information about the dovecot-cvs mailing list