Fixed gz attachment type search in determine_attachment_type()

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2020-12-04 13:58:47 +01:00
parent 2ed654c87f
commit e8eb74d07a

View File

@ -959,7 +959,7 @@ char *determine_attachment_type(char *filename, char *type){
if(strncasecmp(p, "rar", 3) == 0) return "compressed,"; if(strncasecmp(p, "rar", 3) == 0) return "compressed,";
// tar.gz has the same type // 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, "rtf", 3) == 0) return "word,";
if(strncasecmp(p, "doc", 3) == 0) return "word,"; if(strncasecmp(p, "doc", 3) == 0) return "word,";