dovecot-2.0: idxview: Show dbox record contents in human-readabl...
dovecot at dovecot.org
dovecot at dovecot.org
Thu May 21 06:13:53 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/bc13674ac55f
changeset: 9341:bc13674ac55f
user: Timo Sirainen <tss at iki.fi>
date: Wed May 20 23:13:48 2009 -0400
description:
idxview: Show dbox record contents in human-readable form.
diffstat:
1 file changed, 8 insertions(+)
src/util/idxview.c | 8 ++++++++
diffs (25 lines):
diff -r e902652ce4eb -r bc13674ac55f src/util/idxview.c
--- a/src/util/idxview.c Wed May 20 23:13:01 2009 -0400
+++ b/src/util/idxview.c Wed May 20 23:13:48 2009 -0400
@@ -28,6 +28,10 @@ struct dbox_index_header {
struct dbox_index_header {
uint32_t map_uid_validity;
uint32_t highest_maildir_uid;
+};
+struct dbox_mail_index_record {
+ uint32_t map_uid;
+ uint32_t save_date;
};
struct virtual_mail_index_record {
@@ -433,6 +437,10 @@ static void dump_record(struct mail_inde
printf(" : file_id = %u\n", mrec->file_id);
printf(" : offset = %u\n", mrec->offset);
printf(" : size = %u\n", mrec->size);
+ } else if (strcmp(ext[i].name, "dbox") == 0) {
+ const struct dbox_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));
}
}
}
More information about the dovecot-cvs
mailing list