Browse Source

Treat HTML attachments as bad

tags/3.6
twesterhever 11 months ago
parent
commit
d29846fd0b
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      src/plugins/lua/mime_types.lua

+ 8
- 1
src/plugins/lua/mime_types.lua View File

@@ -45,8 +45,10 @@ local settings = {
extension_map = { -- extension -> mime_type
html = 'text/html',
htm = 'text/html',
txt = 'text/plain',
pdf = 'application/pdf'
shtm = 'text/html',
shtml = 'text/html',
txt = 'text/plain',
},

bad_extensions = {
@@ -59,6 +61,11 @@ local settings = {
jar = 2,
lnk = 4,
scr = 4,
-- In contrast to HTML MIME parts, dedicated HTML attachments are considered harmful
htm = 1,
html = 1,
shtm = 1,
shtml = 1,
-- Have you ever seen that in legit email?
ace = 4,
arj = 2,

Loading…
Cancel
Save