Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5979:433745f10290 HEAD
Added %i and %o for input/output bytes to pop3_logout_format.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 13 Jul 2007 02:37:19 +0300 |
parents | 28836909b3b0 |
children | 57b70f64f997 |
files | dovecot-example.conf src/pop3/client.c |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ #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
--- 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 @@ { 'd', NULL }, { 'm', NULL }, { 's', NULL }, + { 'i', NULL }, + { 'o', NULL }, { '\0', NULL } }; struct var_expand_table *tab; @@ -217,6 +219,8 @@ 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);