]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Treat *.txz attachments as archives and harmful 4987/head
authortwesterhever <40121680+twesterhever@users.noreply.github.com>
Mon, 27 May 2024 09:24:50 +0000 (09:24 +0000)
committertwesterhever <40121680+twesterhever@users.noreply.github.com>
Mon, 27 May 2024 09:24:50 +0000 (09:24 +0000)
Rationale: https://dshield.org/diary/Files%20with%20TXZ%20extension%20used%20as%20malspam%20attachments/30958

src/plugins/lua/mime_types.lua

index 6506025aaefc449ef8e6e211865a10afc5e7d75d..ec8e566f2ffc9b9f38bb850fdbf6080cd2a865b2 100644 (file)
@@ -56,6 +56,7 @@ local settings = {
     exe = 1,
     iso = 4,
     jar = 2,
+    txz = 2,
     zpaq = 2,
     -- In contrast to HTML MIME parts, dedicated HTML attachments are considered harmful
     htm = 1,
@@ -221,6 +222,7 @@ local settings = {
     egg = 1,
     lz = 1,
     rar = 1,
+    txz = 1,
     xz = 1,
     zip = 1,
     zpaq = 1,