]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
pop3: Use i_stream_get_absolute_offset() in stats
authorAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 25 Jan 2023 09:14:12 +0000 (11:14 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 16 Mar 2023 05:38:57 +0000 (07:38 +0200)
Consistent with other protocols

src/pop3/pop3-client.c

index c7787b1ca84d5445242c09a46732f05a7461dfc9..428d8b8109547fa5c27ca6b5cd86fa3ba204a4ad 100644 (file)
@@ -539,7 +539,8 @@ static const char *client_stats(struct client *client)
                       dec2str(client->deleted_count), "deleted_count" },
                { 'm', dec2str(client->messages_count), "message_count" },
                { 's', dec2str(client->total_size), "message_bytes" },
-               { 'i', dec2str(client->input->v_offset), "input" },
+               { 'i', dec2str(i_stream_get_absolute_offset(client->input)),
+                 "input" },
                { 'o', dec2str(client->output->offset), "output" },
                { 'u', uidl_change, "uidl_change" },
                { '\0', !client->delete_success ? "0" :