From: Timo Sirainen Date: Thu, 8 May 2003 02:29:13 +0000 (+0300) Subject: Content-Type wasn't actually set, which caused us to search non-text attachments... X-Git-Tag: 1.1.alpha1~4671 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2d958ac6d4d55989741c10e4e4e78626f72d781;p=thirdparty%2Fdovecot%2Fcore.git Content-Type wasn't actually set, which caused us to search non-text attachments which unnecessarily slows down things. --HG-- branch : HEAD --- diff --git a/src/lib-mail/message-body-search.c b/src/lib-mail/message-body-search.c index d737207d4e..7c6f40bd6e 100644 --- a/src/lib-mail/message-body-search.c +++ b/src/lib-mail/message-body-search.c @@ -48,7 +48,7 @@ static void parse_content_type(const unsigned char *value, size_t value_len, { struct part_search_context *ctx = context; - if (ctx->content_type != NULL) { + if (ctx->content_type == NULL) { ctx->content_type = i_strndup(value, value_len); ctx->content_type_text = strncasecmp(ctx->content_type, "text/", 5) == 0 ||