Mercurial > dovecot > original-hg > dovecot-1.2
changeset 3466:c058c73776cc HEAD
Fetching message parts or virtual size from cache didn't work correctly and
could have crashed.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 03 Jul 2005 23:53:50 +0300 |
parents | 163f6efa6a0e |
children | b75125eced7f |
files | src/lib-storage/index/index-mail.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-mail.c Sun Jul 03 23:48:44 2005 +0300 +++ b/src/lib-storage/index/index-mail.c Sun Jul 03 23:53:50 2005 +0300 @@ -777,7 +777,7 @@ header/body */ if ((mail->wanted_fields & MAIL_FETCH_MESSAGE_PARTS) != 0) { unsigned int cache_field = - cache_fields[MAIL_FETCH_MESSAGE_PARTS].idx; + cache_fields[MAIL_CACHE_MESSAGEPART].idx; if (mail_cache_field_exists(cache_view, seq, cache_field) <= 0) data->access_part |= PARSE_HDR | PARSE_BODY; @@ -785,7 +785,7 @@ if ((mail->wanted_fields & MAIL_FETCH_VIRTUAL_SIZE) != 0) { unsigned int cache_field = - cache_fields[MAIL_FETCH_VIRTUAL_SIZE].idx; + cache_fields[MAIL_CACHE_VIRTUAL_FULL_SIZE].idx; if (mail_cache_field_exists(cache_view, seq, cache_field) <= 0) data->access_part |= READ_HDR | READ_BODY;