From: Aki Tuomi Date: Tue, 24 Jan 2023 10:48:03 +0000 (+0200) Subject: pop3: Include net_in_bytes, net_out_bytes in event X-Git-Tag: 2.4.0~2926 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a9d6d10cfeb42b1e83e835545c0e399417e4cc5;p=thirdparty%2Fdovecot%2Fcore.git pop3: Include net_in_bytes, net_out_bytes in event These fields are mainly intended for the mail_user_session_finished event. --- diff --git a/src/pop3/pop3-client.c b/src/pop3/pop3-client.c index 428d8b8109..6c1766b8a6 100644 --- a/src/pop3/pop3-client.c +++ b/src/pop3/pop3-client.c @@ -562,6 +562,10 @@ static const char *client_stats(struct client *client) "Failed to expand pop3_logout_format=%s: %s", client->set->pop3_logout_format, error); } + + event_add_int(client->event, "net_in_bytes", i_stream_get_absolute_offset(client->input)); + event_add_int(client->event, "net_out_bytes", client->output->offset); + return str_c(str); }