Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7015:03cb4c0802a7 HEAD
Don't try to cache BODY/BODYSTRUCTURE if we didn't even parse it.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 21 Dec 2007 21:39:58 +0200 |
parents | 6835ac721609 |
children | ac32dc7ae0c1 |
files | src/lib-storage/index/index-mail.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-mail.c Fri Dec 21 21:38:38 2007 +0200 +++ b/src/lib-storage/index/index-mail.c Fri Dec 21 21:39:58 2007 +0200 @@ -542,6 +542,9 @@ } } + if (!data->parsed_bodystructure) + return; + /* If BODY is fetched first but BODYSTRUCTURE is also wanted, we don't normally want to first cache BODY and then BODYSTRUCTURE. So check the wanted_fields also in here. */