[prev in list] [next in list] [prev in thread] [next in thread]
List: dovecot-cvs
Subject: dovecot: If v1.1 index is accessed with v1.0, avoid recent messa...
From: dovecot () dovecot ! org (dovecot at dovecot ! org)
Date: 2007-08-31 21:36:06
Message-ID: hg.d815c115ade6.1188596166.558208662 () syksy ! dovecot ! org
[Download RAW message or body]
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)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic