dovecot-1.1: Show the new uidlist_* fields in maildir header.

dovecot at dovecot.org dovecot at dovecot.org
Thu May 15 07:01:46 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/7a7cf6662302
changeset: 7516:7a7cf6662302
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 15 07:01:40 2008 +0300
description:
Show the new uidlist_* fields in maildir header.

diffstat:

1 file changed, 10 insertions(+), 6 deletions(-)
src/util/idxview.c |   16 ++++++++++------

diffs (33 lines):

diff -r c14a2b0a3126 -r 7a7cf6662302 src/util/idxview.c
--- a/src/util/idxview.c	Thu May 15 07:01:26 2008 +0300
+++ b/src/util/idxview.c	Thu May 15 07:01:40 2008 +0300
@@ -15,6 +15,7 @@ struct maildir_index_header {
 struct maildir_index_header {
 	uint32_t new_check_time, new_mtime, new_mtime_nsecs;
 	uint32_t cur_check_time, cur_mtime, cur_mtime_nsecs;
+	uint32_t uidlist_mtime, uidlist_mtime_nsecs, uidlist_size;
 };
 struct dbox_index_header {
 	uint32_t last_dirty_flush_stamp;
@@ -78,12 +79,15 @@ static void dump_extension_header(struct
 		const struct maildir_index_header *hdr = data;
 
 		printf("header\n");
-		printf(" - new_check_time  = %s\n", unixdate2str(hdr->new_check_time));
-		printf(" - new_mtime ..... = %s\n", unixdate2str(hdr->new_mtime));
-		printf(" - new_mtime_nsecs = %u\n", hdr->new_mtime_nsecs);
-		printf(" - cur_check_time  = %s\n", unixdate2str(hdr->cur_check_time));
-		printf(" - cur_mtime ..... = %s\n", unixdate2str(hdr->cur_mtime));
-		printf(" - cur_mtime_nsecs = %u\n", hdr->cur_mtime_nsecs);
+		printf(" - new_check_time .... = %s\n", unixdate2str(hdr->new_check_time));
+		printf(" - new_mtime ......... = %s\n", unixdate2str(hdr->new_mtime));
+		printf(" - new_mtime_nsecs ... = %u\n", hdr->new_mtime_nsecs);
+		printf(" - cur_check_time .... = %s\n", unixdate2str(hdr->cur_check_time));
+		printf(" - cur_mtime ......... = %s\n", unixdate2str(hdr->cur_mtime));
+		printf(" - cur_mtime_nsecs.... = %u\n", hdr->cur_mtime_nsecs);
+		printf(" - uidlist_mtime ..... = %s\n", unixdate2str(hdr->uidlist_mtime));
+		printf(" - uidlist_mtime_nsecs = %u\n", hdr->uidlist_mtime_nsecs);
+		printf(" - uidlist_size ...... = %u\n", hdr->uidlist_size);
 	} else if (strcmp(ext->name, "dbox-hdr") == 0) {
 		const struct dbox_index_header *hdr = data;
 


More information about the dovecot-cvs mailing list