]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Incorporate additional bad attachments from Microsoft
authortwesterhever <40121680+twesterhever@users.noreply.github.com>
Sun, 22 Oct 2023 20:19:25 +0000 (20:19 +0000)
committertwesterhever <40121680+twesterhever@users.noreply.github.com>
Sun, 22 Oct 2023 20:19:25 +0000 (20:19 +0000)
These are as follows:
- htc: HTML Component File
- pyc: Compiled Python Script
- pyo: Optimized Compiled Python Module
- pyw: Python Script To Be Executed With Suppressed Terminal Window
- pyz: Python Zip Application
- pyzw: Python Zip Application
- vhd: Virtual Hard Disk
- vhdx: Virtual Hard Disk Extended
- wsf: Windows Script File

Note that the Python file types remain unscored in archives, so
distribution of these in source tarballs and the like is not affected by
this commit.

Source: https://support.microsoft.com/en-us/office/blocked-attachments-in-outlook-434752e1-02d3-4e90-9124-8b81e49a8519?ui=en-us&rs=en-us&ad=us

src/plugins/lua/mime_types.lua

index 19de9a75111125852e756a01262fe347d443a6bb..d6a9ff06fd4a99c1c7afe7bb591639cf292f447b 100644 (file)
@@ -111,6 +111,7 @@ local settings = {
     hlp = 4,
     hpj = 4,
     hta = 4,
+    htc = 4,
     inf = 4,
     its = 4,
     jnlp = 4,
@@ -157,6 +158,11 @@ local settings = {
     psd1 = 4,
     psdm1 = 4,
     pst = 4,
+    pyc = 4,
+    pyo = 4,
+    pyw = 4,
+    pyz = 4,
+    pyzw = 4,
     reg = 4,
     scf = 4,
     scr = 4,
@@ -164,11 +170,14 @@ local settings = {
     theme = 4,
     url = 4,
     vbp = 4,
+    vhd = 4,
+    vhdx = 4,
     vsmacros = 4,
     vsw = 4,
     webpnp = 4,
     website = 4,
     ws = 4,
+    wsf = 4,
     xbap = 4,
     xll = 4,
     xnk = 4,