diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-10-10 16:00:43 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-10-10 16:00:43 +0200 |
commit | 1cdb5de1b1756be077af74f20f8056fed23ccdaa (patch) | |
tree | 147613c06485d32bfb0af29ef243edc357a3e813 | |
parent | bffb0bd7a3d3a2fd2a19a805ebb5fb904a66ff24 (diff) | |
download | rspamd-1cdb5de1b1756be077af74f20f8056fed23ccdaa.tar.gz rspamd-1cdb5de1b1756be077af74f20f8056fed23ccdaa.zip |
[Fix] SpamAssassin: Fail check_freemail_header if regexp didn't match
- MFH: rspamd-1.6
-rw-r--r-- | src/plugins/lua/spamassassin.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/lua/spamassassin.lua b/src/plugins/lua/spamassassin.lua index ffd8dcbf2..ab97accb7 100644 --- a/src/plugins/lua/spamassassin.lua +++ b/src/plugins/lua/spamassassin.lua @@ -360,6 +360,7 @@ local function gen_eval_rule(arg) if r:match(h) then return 1 end + return 0 else rspamd_logger.infox(rspamd_config, 'cannot create regexp %1', re) return 0 |