Mercurial > dovecot > core-2.2
changeset 4025:d4c02d132a32 HEAD
Fetching BODY/BODYSTRUCTURE with header fields caused Dovecot to unneededly
open the mails and parse their headers, if everything was already in cache.
author | Timo Sirainen <timo.sirainen@movial.fi> |
---|---|
date | Fri, 17 Feb 2006 16:20:08 +0200 |
parents | 7d7b0f427d68 |
children | 20c335412d7d |
files | src/lib-storage/index/index-mail.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-mail.c Fri Feb 17 14:28:53 2006 +0200 +++ b/src/lib-storage/index/index-mail.c Fri Feb 17 16:20:08 2006 +0200 @@ -838,9 +838,8 @@ if (mail_cache_field_exists(cache_view, seq, cache_field1) <= 0 && mail_cache_field_exists(cache_view, - seq, cache_field2) <= 0) + seq, cache_field2) <= 0) { data->access_part |= PARSE_HDR | PARSE_BODY; - else { data->save_bodystructure_header = TRUE; data->save_bodystructure_body = TRUE; } @@ -851,9 +850,9 @@ unsigned int cache_field = cache_fields[MAIL_CACHE_IMAP_BODYSTRUCTURE].idx; - if (mail_cache_field_exists(cache_view, seq, cache_field) <= 0) + if (mail_cache_field_exists(cache_view, seq, + cache_field) <= 0) { data->access_part |= PARSE_HDR | PARSE_BODY; - else { data->save_bodystructure_header = TRUE; data->save_bodystructure_body = TRUE; }