# HG changeset patch # User Timo Sirainen # Date 1198265998 -7200 # Node ID 03cb4c0802a7bb7a80d34300098323ca02a02ef3 # Parent 6835ac7216090b1a827cd268fece77ad15be05cb Don't try to cache BODY/BODYSTRUCTURE if we didn't even parse it. diff -r 6835ac721609 -r 03cb4c0802a7 src/lib-storage/index/index-mail.c --- 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. */