commit b1a9353: Keep attachment filename suffix lists sorted

twesterhever 40121680+twesterhever at users.noreply.github.com
Fri Jun 23 19:42:04 UTC 2023


Author: twesterhever
Date: 2023-06-22 21:01:26 +0000
URL: https://github.com/rspamd/rspamd/commit/b1a9353b02a49451fd4ccfda3d535e243363e37f

Keep attachment filename suffix lists sorted

---
 src/plugins/lua/mime_types.lua | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua
index 83ea0eb00..24c107fec 100644
--- a/src/plugins/lua/mime_types.lua
+++ b/src/plugins/lua/mime_types.lua
@@ -175,40 +175,40 @@ local settings = {
 
   -- Something that should not be in archive
   bad_archive_extensions = {
-    pptx = 0.1,
     docx = 0.1,
-    xlsx = 0.1,
-    pdf = 0.1,
+    hta = 4,
     jar = 3,
     js = 0.5,
+    pdf = 0.1,
+    pptx = 0.1,
     vbs = 4,
     wsf = 4,
-    hta = 4,
+    xlsx = 0.1,
   },
 
   archive_extensions = {
-    zip = 1,
-    arj = 1,
-    rar = 1,
-    ace = 1,
     ['7z'] = 1,
-    cab = 1,
+    ace = 1,
+    alz = 1,
+    arj = 1,
     bz2 = 1,
+    cab = 1,
     egg = 1,
-    alz = 1,
-    xz = 1,
     lz = 1,
+    rar = 1,
+    xz = 1,
+    zip = 1,
   },
 
   -- Not really archives
   archive_exceptions = {
-    odt = true,
-    ods = true,
-    odp = true,
     docx = true,
-    xlsx = true,
+    odp = true,
+    ods = true,
+    odt = true,
     pptx = true,
     vsdx = true,
+    xlsx = true,
     -- jar = true,
   },
 


More information about the Commits mailing list