Mercurial > dovecot > core-2.2
changeset 12975:cd811a24652a
lib-storage: Fixed checking if mail's virtual size is cached.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 11 May 2011 23:32:26 +0300 |
parents | 9f2fb7da9501 |
children | 1e1674cedf2d |
files | src/lib-storage/index/index-mail.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-mail.c Wed May 11 23:24:41 2011 +0300 +++ b/src/lib-storage/index/index-mail.c Wed May 11 23:32:26 2011 +0300 @@ -1329,7 +1329,7 @@ uoff_t vsize; _mail->lookup_abort = MAIL_LOOKUP_ABORT_NOT_IN_CACHE; - if (mail_get_virtual_size(_mail, &vsize) <= 0) + if (mail_get_virtual_size(_mail, &vsize) < 0) mail->data.access_part |= READ_HDR | READ_BODY; _mail->lookup_abort = MAIL_LOOKUP_ABORT_NEVER; }