From 0090b656db9ca125b1088f57596a498debd0ef58 Mon Sep 17 00:00:00 2001 From: Josef 'Jeff' Sipek Date: Mon, 9 Mar 2020 09:52:37 -0400 Subject: [PATCH] plugins/fts: Lower-case content types received from script parser Later on during the execution, the script parser code does a strcmp() to match the content type of the attachment with that returned by the script. The content type from the mail is already lowercased. --- src/plugins/fts/fts-parser-script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/fts/fts-parser-script.c b/src/plugins/fts/fts-parser-script.c index d07d800a6a..f8f98e3ac5 100644 --- a/src/plugins/fts/fts-parser-script.c +++ b/src/plugins/fts/fts-parser-script.c @@ -97,7 +97,7 @@ static int script_contents_read(struct mail_user *user) } content = array_append_space(&suser->content); - content->content_type = args[0]; + content->content_type = str_lcase(args[0]); content->extensions = (const void *)(args+1); } if (input->stream_errno != 0) { -- 2.47.3