dovecot-1.1: Transaction view: If index is reset, lookup_first()...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Sep 22 23:50:45 EEST 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/32206d4b6304
changeset: 7895:32206d4b6304
user: Timo Sirainen <tss at iki.fi>
date: Mon Sep 22 23:50:25 2008 +0300
description:
Transaction view: If index is reset, lookup_first() shouldn't return old sequences.
diffstat:
1 file changed, 7 insertions(+), 3 deletions(-)
src/lib-index/mail-index-transaction-view.c | 10 +++++++---
diffs (20 lines):
diff -r 471b0096b579 -r 32206d4b6304 src/lib-index/mail-index-transaction-view.c
--- a/src/lib-index/mail-index-transaction-view.c Mon Sep 22 23:49:09 2008 +0300
+++ b/src/lib-index/mail-index-transaction-view.c Mon Sep 22 23:50:25 2008 +0300
@@ -168,9 +168,13 @@ static void tview_lookup_first(struct ma
unsigned int append_count;
uint32_t seq, message_count;
- tview->super->lookup_first(view, flags, flags_mask, seq_r);
- if (*seq_r != 0)
- return;
+ if (!tview->t->reset) {
+ tview->super->lookup_first(view, flags, flags_mask, seq_r);
+ if (*seq_r != 0)
+ return;
+ } else {
+ *seq_r = 0;
+ }
rec = array_get(&tview->t->appends, &append_count);
seq = tview->t->first_new_seq;
More information about the dovecot-cvs
mailing list