]> 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 15:38:39 +0000 (18:38 +0300)
src/doveadm/doveadm-dump-index.c

index cdf736b30238c32da55851d044568ff0e24fada3..40cc91b89c7d87a05b495831a9677befb6cffc9a 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);