From: Timo Sirainen Date: Thu, 4 Jun 2009 20:27:24 +0000 (-0400) Subject: Message body search: Skip MIME boundaries and multipart footer. X-Git-Tag: 2.0.alpha1~602 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e8bfd4cbc1c5cd9154028251fddf0e5253f21d80;p=thirdparty%2Fdovecot%2Fcore.git Message body search: Skip MIME boundaries and multipart footer. --HG-- branch : HEAD --- diff --git a/src/lib-mail/message-search.c b/src/lib-mail/message-search.c index 8e4f929670..46bc56f678 100644 --- a/src/lib-mail/message-search.c +++ b/src/lib-mail/message-search.c @@ -148,6 +148,11 @@ bool message_search_more(struct message_search_context *ctx, content type */ message_search_reset(ctx); ctx->prev_part = raw_block->part; + + if (hdr == NULL) { + /* we're returning to a multipart message. */ + ctx->content_type_text = FALSE; + } } if (hdr != NULL) {