]> source.dussan.org Git - rspamd.git/commitdiff
Add `BROKEN_HEADERS` rule
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 22 Jan 2016 17:26:23 +0000 (17:26 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 22 Jan 2016 17:26:23 +0000 (17:26 +0000)
rules/misc.lua

index 256255145a7d69534f37f7e507b919a0222a0105..8d801809cefd2be65a2f006fe518e3b94f21e936 100644 (file)
@@ -133,3 +133,16 @@ rspamd_config.SUBJ_ALL_CAPS = {
   group = 'headers',
   description = 'All capital letters in subject'
 }
+
+rspamd_config.BROKEN_HEADERS = {
+  callback = function(task)
+    if task:has_flag('broken_headers') then
+      return true
+    end
+    
+    return false
+  end,
+  score = 1.0,
+  group = 'headers',
+  description = 'Headers structure is likely broken'
+}
\ No newline at end of file