From e484b311bb57ab9843684db33738c9829bdbba6e Mon Sep 17 00:00:00 2001 From: twesterhever <40121680+twesterhever@users.noreply.github.com> Date: Sun, 22 Oct 2023 20:19:25 +0000 Subject: [PATCH] [Minor] Incorporate additional bad attachments from Microsoft 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua index 19de9a751..d6a9ff06f 100644 --- a/src/plugins/lua/mime_types.lua +++ b/src/plugins/lua/mime_types.lua @@ -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, -- 2.39.5