[Rspamd] DeltaChat improvements
parent
bdafb7ab2f
commit
b3959e8071
|
@ -66,5 +66,5 @@ WL_FWD_HOST {
|
|||
expression = "-WHITELISTED_FWD_HOST & (^g+:rbl | ^g+:policies | ^g+:hfilter | ^g:neural)";
|
||||
}
|
||||
ENCRYPTED_CHAT {
|
||||
expression = "CHAT_VERSION_HEADER & ENCRYPTED_PGP & ^DYN_RL_CHECK & ^BCC";
|
||||
expression = "CHAT_VERSION_HEADER & ENCRYPTED_PGP";
|
||||
}
|
||||
|
|
|
@ -15,6 +15,9 @@ symbols {
|
|||
"BULK_HEADER" {
|
||||
score = 4.0;
|
||||
}
|
||||
"ENCRYPTED_CHAT" {
|
||||
score = -20.0;
|
||||
}
|
||||
}
|
||||
|
||||
group "MX" {
|
||||
|
|
|
@ -331,6 +331,10 @@ rspamd_config:register_symbol({
|
|||
local from_table = {}
|
||||
local rcpt_table = {}
|
||||
|
||||
if task:has_symbol('ENCRYPTED_CHAT') then
|
||||
return -- stop
|
||||
end
|
||||
|
||||
local send_mail = function(task, bcc_dest)
|
||||
local lua_smtp = require "lua_smtp"
|
||||
local function sendmail_cb(ret, err)
|
||||
|
|
Loading…
Reference in New Issue