[Rspamd] DeltaChat improvements

master
andryyy 2021-07-09 09:19:06 +02:00
parent bdafb7ab2f
commit b3959e8071
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
3 changed files with 8 additions and 1 deletions

View File

@ -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";
}

View File

@ -15,6 +15,9 @@ symbols {
"BULK_HEADER" {
score = 4.0;
}
"ENCRYPTED_CHAT" {
score = -20.0;
}
}
group "MX" {

View File

@ -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)