dovecot: If v1.1 index is accessed with v1.0, avoid recent messa...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Sep 1 00:36:06 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/d815c115ade6
changeset: 6333:d815c115ade6
user: Timo Sirainen <tss at iki.fi>
date: Fri Aug 31 20:50:35 2007 +0300
description:
If v1.1 index is accessed with v1.0, avoid recent message counter errors.
diffstat:
1 file changed, 4 insertions(+)
src/lib-index/mail-index-map.c | 4 ++++
diffs (14 lines):
diff -r aa4a78b3c626 -r d815c115ade6 src/lib-index/mail-index-map.c
--- a/src/lib-index/mail-index-map.c Wed Aug 29 22:58:27 2007 +0300
+++ b/src/lib-index/mail-index-map.c Fri Aug 31 20:50:35 2007 +0300
@@ -326,6 +326,10 @@ static void mail_index_map_copy_hdr(stru
} else {
map->hdr = *hdr;
}
+
+ /* FIXME: backwards compatibility, remove later. In case this index is
+ accessed with Dovecot v1.0, avoid recent message counter errors. */
+ map->hdr.unused_old_recent_messages_count = 0;
}
static int mail_index_mmap(struct mail_index_map *map, uoff_t file_size)
More information about the dovecot-cvs
mailing list