Mercurial > dovecot > core-2.2
changeset 7069:46d531d521b9 HEAD
Update last_used also for decision=yes cache fields, otherwise they get
dropped when compressing.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 29 Dec 2007 21:24:30 +0200 |
parents | 180e219aab9a |
children | 1bf9e7248e15 |
files | src/lib-index/mail-cache-decisions.c |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-cache-decisions.c Sat Dec 29 21:23:50 2007 +0200 +++ b/src/lib-index/mail-cache-decisions.c Sat Dec 29 21:24:30 2007 +0200 @@ -79,14 +79,6 @@ i_assert(field < cache->fields_count); - if (cache->fields[field].field.decision != MAIL_CACHE_DECISION_TEMP) { - /* a) forced decision - b) not cached, mail_cache_decision_add() will handle this - c) permanently cached already, okay. */ - return; - } - - /* see if we want to change decision from TEMP to YES */ mail_index_lookup_uid(view->view, seq, &uid); hdr = mail_index_get_header(view->view); @@ -96,6 +88,14 @@ cache->field_header_write_pending = TRUE; } + if (cache->fields[field].field.decision != MAIL_CACHE_DECISION_TEMP) { + /* a) forced decision + b) not cached, mail_cache_decision_add() will handle this + c) permanently cached already, okay. */ + return; + } + + /* see if we want to change decision from TEMP to YES */ if (uid < cache->fields[field].uid_highwater || uid < hdr->day_first_uid[7]) { /* a) nonordered access within this session. if client doesn't