aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libmime/archives.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libmime/archives.c b/src/libmime/archives.c
index 129863264..9cfce6968 100644
--- a/src/libmime/archives.c
+++ b/src/libmime/archives.c
@@ -1543,6 +1543,13 @@ rspamd_archives_process (struct rspamd_task *task)
sz_magic, sizeof (sz_magic))) {
rspamd_archive_process_7zip (task, part);
}
+
+ if (IS_CT_TEXT (part->ct) &&
+ (part->flags & RSPAMD_MIME_PART_ARCHIVE)) {
+ msg_info_task ("found archive with incorrect content-type: %T/%T",
+ &part->ct->type, &part->ct->subtype);
+ part->ct->flags |= RSPAMD_CONTENT_TYPE_BROKEN;
+ }
}
}
}