From: Josef 'Jeff' Sipek Date: Tue, 10 Mar 2020 09:13:01 +0000 (-0400) Subject: plugins/fts: script parser - Properly determine the attachment extension X-Git-Tag: 2.3.11.2~546 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de743f53c38d4ac024ceb8bdefeba6de787ff73a;p=thirdparty%2Fdovecot%2Fcore.git plugins/fts: script parser - Properly determine the attachment extension --- diff --git a/src/plugins/fts/fts-parser-script.c b/src/plugins/fts/fts-parser-script.c index f8f98e3ac5..eefbe07993 100644 --- a/src/plugins/fts/fts-parser-script.c +++ b/src/plugins/fts/fts-parser-script.c @@ -138,7 +138,7 @@ static bool script_support_content(struct mail_user *user, extension = strrchr(filename, '.'); if (extension == NULL) return FALSE; - extension = filename + 1; + extension = extension + 1; array_foreach(&suser->content, content) { if (content->extensions != NULL &&