]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm dump: Support hdr-pop3-uidl index header extension
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 11 May 2020 14:41:24 +0000 (17:41 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 15 Mar 2021 06:51:46 +0000 (06:51 +0000)
src/doveadm/doveadm-dump-index.c

index a8021b309ee4b60e78f8e187afe40441251a2463..765e5bd1d41490383797890ab2a3003b48002b01 100644 (file)
@@ -321,6 +321,12 @@ static void dump_extension_header(struct mail_index *index,
                printf("header ........ = %s\n",
                       binary_to_hex(data, ext->hdr_size));
                dump_box_name_header(data, ext->hdr_size);
+       } else if (strcmp(ext->name, "hdr-pop3-uidl") == 0) {
+               const struct mailbox_index_pop3_uidl *hdr = data;
+
+               printf("header\n");
+               printf(" - max_uid_with_pop3_uidl = %u\n",
+                      hdr->max_uid_with_pop3_uidl);
        } else {
                printf("header ........ = %s\n",
                       binary_to_hex(data, ext->hdr_size));