Mercurial > dovecot > core-2.2
changeset 9450:227a64839587 HEAD
Message body search: Skip MIME boundaries and multipart footer.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 04 Jun 2009 16:27:24 -0400 |
parents | 653bfe9ad192 |
children | d86490ef27bd |
files | src/lib-mail/message-search.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-mail/message-search.c Thu Jun 04 15:45:23 2009 -0400 +++ b/src/lib-mail/message-search.c Thu Jun 04 16:27:24 2009 -0400 @@ -148,6 +148,11 @@ 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) {