From e8eb74d07aeb5242bdf1c34d3c056336ea8dd81c Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Fri, 4 Dec 2020 13:58:47 +0100 Subject: [PATCH] Fixed gz attachment type search in determine_attachment_type() Signed-off-by: Janos SUTO --- src/parser_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser_utils.c b/src/parser_utils.c index 5c56a6e3..87e91cb8 100644 --- a/src/parser_utils.c +++ b/src/parser_utils.c @@ -959,7 +959,7 @@ char *determine_attachment_type(char *filename, char *type){ if(strncasecmp(p, "rar", 3) == 0) return "compressed,"; // tar.gz has the same type - if(strncasecmp(p, "x-gzip", 3) == 0) return "compressed,"; + if(strncasecmp(p, "gz", 2) == 0) return "compressed,"; if(strncasecmp(p, "rtf", 3) == 0) return "word,"; if(strncasecmp(p, "doc", 3) == 0) return "word,";