diff --git a/config/spamheaders.toml b/config/spamheaders.toml index d85a3b38..bca2b709 100644 --- a/config/spamheaders.toml +++ b/config/spamheaders.toml @@ -17,6 +17,13 @@ key="X-Rspamd-Spam" value="^yes" target="\\Junk" +# Treat as spam if message has header with 6 or more plus signs: +# X-Rspamd-Bar: ++++++ +[[spamHeader]] +key="X-Rspamd-Bar" +value="^\\+{6}" +target="\\Junk" + [[spamHeader]] # If this header has a value, then it contains a virus, treat as spam key="X-Haraka-Virus" diff --git a/lib/filter-handler.js b/lib/filter-handler.js index 92c6b0ed..a2e36fb9 100644 --- a/lib/filter-handler.js +++ b/lib/filter-handler.js @@ -18,6 +18,13 @@ const defaultSpamHeaderKeys = [ value: '^yes', target: '\\Junk' }, + + { + key: 'X-Rspamd-Bar', + value: '^\\+{6}', + target: '\\Junk' + }, + { key: 'X-Haraka-Virus', value: '.',