]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm dump: Updated obox's oid output.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 19 Jun 2016 15:38:39 +0000 (18:38 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 19 Jun 2016 23:32:28 +0000 (02:32 +0300)
src/doveadm/doveadm-dump-index.c

index 21509cefbaaef96fa1b220a5f3c6fbb22de2dcbe..3e048444c4a312edc27e37c2346d7db2f7821deb 100644 (file)
@@ -621,7 +621,7 @@ static void dump_record(struct mail_index_view *view, unsigned int seq)
                } else if (strcmp(ext[i].name, "obox") == 0) {
                        const struct obox_mail_index_record *orec = data;
                        printf("                   : guid = %s\n", guid_128_to_string(orec->guid));
-                       printf("                   : oid  = %s\n", guid_128_to_string(orec->oid));
+                       printf("                   : oid  = %s\n", binary_to_hex(orec->oid, ext[i].record_size - sizeof(orec->guid)));
                } else if (strcmp(ext[i].name, "mobox") == 0) {
                        const struct mobox_mail_index_record *orec = data;
                        printf("                   : map_uid   = %u\n", orec->map_uid);