dovecot: write_seq_first/last wasn't updated correctly when appe...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Sep 15 15:18:58 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/abbea4e5c128
changeset: 6389:abbea4e5c128
user: Timo Sirainen <tss at iki.fi>
date: Sat Sep 15 15:17:57 2007 +0300
description:
write_seq_first/last wasn't updated correctly when appending messages,
causing "messages_count too large" errors.
diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
src/lib-index/mail-index-sync-update.c | 5 +++--
diffs (15 lines):
diff -r 78b9315ed5ff -r abbea4e5c128 src/lib-index/mail-index-sync-update.c
--- a/src/lib-index/mail-index-sync-update.c Sat Sep 15 13:11:22 2007 +0300
+++ b/src/lib-index/mail-index-sync-update.c Sat Sep 15 15:17:57 2007 +0300
@@ -318,8 +318,9 @@ static int sync_append(const struct mail
map->rec_map->last_appended_uid = rec->uid;
new_flags = rec->flags;
- mail_index_sync_write_seq_update(ctx, map->hdr.messages_count,
- map->hdr.messages_count);
+ mail_index_sync_write_seq_update(ctx,
+ map->rec_map->records_count,
+ map->rec_map->records_count);
}
map->hdr.messages_count++;
More information about the dovecot-cvs
mailing list