]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Keep attachment filename suffix lists sorted
authortwesterhever <40121680+twesterhever@users.noreply.github.com>
Thu, 22 Jun 2023 21:01:26 +0000 (21:01 +0000)
committertwesterhever <40121680+twesterhever@users.noreply.github.com>
Thu, 22 Jun 2023 21:02:41 +0000 (21:02 +0000)
src/plugins/lua/mime_types.lua

index 83ea0eb004fec2b8cf56594c95df02306a470d54..24c107fecafe0f972a306306b744f071c874879a 100644 (file)
@@ -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,
   },