Mercurial > dovecot > core-2.2
changeset 6333:d815c115ade6 HEAD
If v1.1 index is accessed with v1.0, avoid recent message counter errors.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 31 Aug 2007 20:50:35 +0300 |
parents | aa4a78b3c626 |
children | e6d16b1b5e81 |
files | src/lib-index/mail-index-map.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ } 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)