commit 0b270ee: [Minor] Rbl: Add `content_urls` attribute

Vsevolod Stakhov vsevolod at highsecure.ru
Tue May 5 14:56:12 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-05-05 15:50:23 +0100
URL: https://github.com/rspamd/rspamd/commit/0b270ee8b4fc5f3f2133617b9b351b73188f6616 (HEAD -> master)

[Minor] Rbl: Add `content_urls` attribute

---
 src/plugins/lua/rbl.lua | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua
index 73bddfdc9..5e05bf1d4 100644
--- a/src/plugins/lua/rbl.lua
+++ b/src/plugins/lua/rbl.lua
@@ -509,6 +509,7 @@ local function gen_rbl_callback(rule)
       ignore_ip = rule.no_ip,
       need_images = rule.images,
       need_emails = false,
+      need_content = rule.content_urls or false,
       esld_limit = esld_lim,
       no_cache = true,
     }
@@ -1155,6 +1156,7 @@ local rule_schema_tbl = {
   process_script = ts.string:is_optional(),
   emails_delimiter = ts.string:is_optional(),
   ignore_defaults = ts.boolean:is_optional(),
+  content_urls = ts.boolean:is_optional(),
   disable_monitoring = ts.boolean:is_optional(),
   symbols_prefixes = ts.map_of(ts.string, ts.string):is_optional(),
 }


More information about the Commits mailing list