Hi! It seem that tview_lookup_seq_range works incorret, if I request uids from 3 to 3, and I have new uids 1,2,4,5 it will return seq for uid=4. Fixing patch is included as attach.
------ Sergey Potapov
# HG changeset patch # User lion@ubuntu.ubuntu-domain # Date 1354855835 -14400 # Node ID bb3559ad714294918b56c6f4a45ad9c14ce5c3cb # Parent d4aab9a4b15989d3be1d734efda8d53c6d96b185 lib-index: Fixed sequence lookup of newly created mails in transaction view. diff -r d4aab9a4b159 -r bb3559ad7142 src/lib-index/mail-index-transaction-view.c --- a/src/lib-index/mail-index-transaction-view.c СÑ. дек. 05 18:52:08 2012 +0400 +++ b/src/lib-index/mail-index-transaction-view.c ÐÑ. дек. 07 08:50:35 2012 +0400 @@ -203,11 +203,17 @@ if (first_uid <= rec->uid) break; } - if (seq > tview->t->last_new_seq) { + if (seq > tview->t->last_new_seq || rec->uid > last_uid) { /* no messages in range */ return; } *first_seq_r = seq; + + if (rec->uid == last_uid) { + /* one seq in range */ + *last_seq_r = seq; + return; + } } seq = tview->t->last_new_seq;