diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-05 22:07:45 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-05 22:07:45 +0000 |
commit | 14d274c3db5316770f78f8b295f2eaacdad9e8d6 (patch) | |
tree | f9027b745863d8cb21bbc0af2bd8186735cb442c | |
parent | e5849e1339fa467c8f411643f509a3ae9ebb33c6 (diff) | |
parent | 3d929c5bb3eadfa662c23f06d0f60d48e1c0282e (diff) | |
download | rspamd-14d274c3db5316770f78f8b295f2eaacdad9e8d6.tar.gz rspamd-14d274c3db5316770f78f8b295f2eaacdad9e8d6.zip |
Merge pull request #546 from moisseev/patch-2
Add LONG_SUBJ rule
-rw-r--r-- | rules/misc.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rules/misc.lua b/rules/misc.lua index 86dbccb50..e7d047b3f 100644 --- a/rules/misc.lua +++ b/rules/misc.lua @@ -124,6 +124,20 @@ rspamd_config.SUBJ_ALL_CAPS = { description = 'All capital letters in subject' } +rspamd_config.LONG_SUBJ = { + callback = function(task) + local sbj = task:get_header('Subject') + if sbj and string.len(sbj) > 200 then + return true + end + return false + end, + + score = 3.0, + group = 'headers', + description = 'Subject is too long' +} + rspamd_config.BROKEN_HEADERS = { callback = function(task) if task:has_flag('broken_headers') then |