dovecot-2.2: lib-storage: Fixed STATUS_FIRST_UNSEEN_SEQ lookup w...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jul 2 05:14:36 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/c0ff628352d5
changeset: 14703:c0ff628352d5
user: Timo Sirainen <tss at iki.fi>
date: Mon Jul 02 05:14:02 2012 +0300
description:
lib-storage: Fixed STATUS_FIRST_UNSEEN_SEQ lookup with private flags index.
diffstat:
src/lib-storage/index/index-status.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r 3d3689c2c81d -r c0ff628352d5 src/lib-storage/index/index-status.c
--- a/src/lib-storage/index/index-status.c Sat Jun 30 22:27:34 2012 +0300
+++ b/src/lib-storage/index/index-status.c Mon Jul 02 05:14:02 2012 +0300
@@ -87,8 +87,14 @@
}
if ((items & STATUS_FIRST_UNSEEN_SEQ) != 0) {
- mail_index_lookup_first(box->view, 0, MAIL_SEEN,
- &status_r->first_unseen_seq);
+ if (hdr_pvt == NULL ||
+ (mailbox_get_private_flags_mask(box) & MAIL_SEEN) == 0) {
+ mail_index_lookup_first(box->view, 0, MAIL_SEEN,
+ &status_r->first_unseen_seq);
+ } else {
+ mail_index_lookup_first(box->view_pvt, 0, MAIL_SEEN,
+ &status_r->first_unseen_seq);
+ }
}
if ((items & STATUS_LAST_CACHED_SEQ) != 0)
get_last_cached_seq(box, &status_r->last_cached_seq);
More information about the dovecot-cvs
mailing list