dovecot-2.2: doveadm dump: Added support for "obox" index records.

dovecot at dovecot.org dovecot at dovecot.org
Mon Nov 26 23:25:55 EET 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/9c22246ed431
changeset: 15414:9c22246ed431
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Nov 26 23:24:48 2012 +0200
description:
doveadm dump: Added support for "obox" index records.

diffstat:

 src/doveadm/doveadm-dump-index.c |  8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diffs (25 lines):

diff -r ecf2f2044455 -r 9c22246ed431 src/doveadm/doveadm-dump-index.c
--- a/src/doveadm/doveadm-dump-index.c	Mon Nov 26 23:23:52 2012 +0200
+++ b/src/doveadm/doveadm-dump-index.c	Mon Nov 26 23:24:48 2012 +0200
@@ -45,6 +45,10 @@
 	uint32_t map_uid;
 	uint32_t save_date;
 };
+struct obox_mail_index_record {
+	unsigned char guid[GUID_128_SIZE];
+	unsigned char oid[GUID_128_SIZE];
+};
 struct mailbox_list_index_record {
 	uint32_t name_id;
 	uint32_t parent_uid;
@@ -557,6 +561,10 @@
 			const struct mdbox_mail_index_record *drec = data;
 			printf("                   : map_uid   = %u\n", drec->map_uid);
 			printf("                   : save_date = %u (%s)\n", drec->save_date, unixdate2str(drec->save_date));
+		} 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));
 		} else if (strcmp(ext[i].name, "list") == 0) {
 			const struct mailbox_list_index_record *lrec = data;
 			printf("                   : name_id      = %u\n", lrec->name_id);


More information about the dovecot-cvs mailing list