]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Content-Type wasn't actually set, which caused us to search non-text attachments...
authorTimo Sirainen <tss@iki.fi>
Thu, 8 May 2003 02:29:13 +0000 (05:29 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 8 May 2003 02:29:13 +0000 (05:29 +0300)
--HG--
branch : HEAD

src/lib-mail/message-body-search.c

index d737207d4eaaec21ff2fff8a1668414efe945f8f..7c6f40bd6e9c3acd6d3c3197d6cd18ebfec344df 100644 (file)
@@ -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 ||