From: Josef 'Jeff' Sipek Date: Fri, 7 Sep 2018 14:43:43 +0000 (-0400) Subject: lib-storage: Don't try to deserialize bodystructure if we already have it X-Git-Tag: 2.3.9~1416 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d78aaebbdc9b305b6cad028c2cc54cd51424d94b;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: Don't try to deserialize bodystructure if we already have it Fixes: Panic: file message-part-data.c: line 37 (message_part_data_is_plain_7bit): assertion failed: (data != NULL) --- diff --git a/src/lib-storage/index/index-mail.c b/src/lib-storage/index/index-mail.c index 07b4dd0fdd..e850f6a7cf 100644 --- a/src/lib-storage/index/index-mail.c +++ b/src/lib-storage/index/index-mail.c @@ -131,6 +131,9 @@ static bool get_cached_parts(struct index_mail *mail) { struct message_part *part; + if (mail->data.parts != NULL) + return TRUE; + T_BEGIN { part = get_unserialized_parts(mail); } T_END;