dovecot-2.2: lib-index: mail_index_transaction_lookup_latest_key...

dovecot at dovecot.org dovecot at dovecot.org
Fri Oct 26 10:36:55 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/67af7122a522
changeset: 15258:67af7122a522
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Oct 26 10:36:43 2012 +0300
description:
lib-index: mail_index_transaction_lookup_latest_keywords() didn't work properly.
It wasn't actually looking up the latest keywords.

diffstat:

 src/lib-index/mail-index-transaction.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (16 lines):

diff -r 60f0cb48fdb2 -r 67af7122a522 src/lib-index/mail-index-transaction.c
--- a/src/lib-index/mail-index-transaction.c	Wed Oct 24 15:05:40 2012 +0300
+++ b/src/lib-index/mail-index-transaction.c	Fri Oct 26 10:36:43 2012 +0300
@@ -101,9 +101,9 @@
 		mail_index_refresh(t->view->index);
 		t->latest_view = mail_index_view_open(t->view->index);
 	}
-	mail_index_lookup_uid(t->view, seq, &uid);
-	if (mail_index_lookup_seq(t->view, uid, &latest_seq))
-		mail_index_lookup_keywords(t->view, latest_seq, keywords);
+	mail_index_lookup_uid(t->latest_view, seq, &uid);
+	if (mail_index_lookup_seq(t->latest_view, uid, &latest_seq))
+		mail_index_lookup_keywords(t->latest_view, latest_seq, keywords);
 }
 
 static int


More information about the dovecot-cvs mailing list