dovecot-2.2: lib-index: Make sure unused_old_sync_* fields are c...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Feb 17 10:47:56 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/1dd1e88ba0a2
changeset: 15821:1dd1e88ba0a2
user: Timo Sirainen <tss at iki.fi>
date: Sun Feb 17 10:47:40 2013 +0200
description:
lib-index: Make sure unused_old_sync_* fields are cleared in header in old inedx files.
diffstat:
src/lib-index/mail-index-map-hdr.c | 6 ++++++
src/lib-index/mail-index.h | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
diffs (28 lines):
diff -r e7396c0f7f66 -r 1dd1e88ba0a2 src/lib-index/mail-index-map-hdr.c
--- a/src/lib-index/mail-index-map-hdr.c Sun Feb 17 10:15:04 2013 +0200
+++ b/src/lib-index/mail-index-map-hdr.c Sun Feb 17 10:47:40 2013 +0200
@@ -272,6 +272,12 @@
/* pre-v1.1.rc6: make sure the \Recent flags are gone */
mail_index_map_clear_recent_flags(map);
map->hdr.minor_version = MAIL_INDEX_MINOR_VERSION;
+ /* fall through */
+ case 2:
+ /* pre-v2.2 (although should have been done in v2.1 already):
+ make sure the old unused fields are cleared */
+ map->hdr.unused_old_sync_size = 0;
+ map->hdr.unused_old_sync_stamp = 0;
}
if (hdr->first_recent_uid == 0 ||
hdr->first_recent_uid > hdr->next_uid ||
diff -r e7396c0f7f66 -r 1dd1e88ba0a2 src/lib-index/mail-index.h
--- a/src/lib-index/mail-index.h Sun Feb 17 10:15:04 2013 +0200
+++ b/src/lib-index/mail-index.h Sun Feb 17 10:47:40 2013 +0200
@@ -8,7 +8,7 @@
#include "seq-range-array.h"
#define MAIL_INDEX_MAJOR_VERSION 7
-#define MAIL_INDEX_MINOR_VERSION 2
+#define MAIL_INDEX_MINOR_VERSION 3
#define MAIL_INDEX_HEADER_MIN_SIZE 120
More information about the dovecot-cvs
mailing list