Skip to content

Commit

Permalink
[Minor] Refer to third parties for attachment handling whenever possible
Browse files Browse the repository at this point in the history
This avoids confusion and enqueries to the rspamd project, if it is made
clear that the decision to score certain attachments high has been
incorporated from a well-known third party, such as Google's or
Microsoft's attachment handling policy.
  • Loading branch information
twesterhever committed Oct 22, 2023
1 parent 5c91867 commit 7379c8b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/plugins/lua/mime_types.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,10 @@ local settings = {
},

bad_extensions = {
bat = 2,
chm = 4,
com = 2,
cue = 2,
exe = 1,
hta = 2,
iso = 4,
jar = 2,
lnk = 4,
scr = 4,
-- In contrast to HTML MIME parts, dedicated HTML attachments are considered harmful
htm = 1,
html = 1,
Expand Down Expand Up @@ -105,17 +99,22 @@ local settings = {
app = 4,
asp = 4,
bas = 4,
bat = 4,
chm = 4,
cnt = 4,
com = 4,
csh = 4,
diagcab = 4,
fxp = 4,
gadget = 4,
grp = 4,
hlp = 4,
hpj = 4,
hta = 4,
inf = 4,
its = 4,
jnlp = 4,
lnk = 4,
ksh = 4,
mad = 4,
maf = 4,
Expand Down Expand Up @@ -160,6 +159,7 @@ local settings = {
pst = 4,
reg = 4,
scf = 4,
scr = 4,
shs = 4,
theme = 4,
url = 4,
Expand Down

0 comments on commit 7379c8b

Please sign in to comment.