]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Print error on multimap invalid type 5477/head
authorJose Celestino <japc@co.sapo.pt>
Thu, 22 May 2025 09:21:42 +0000 (10:21 +0100)
committerJose Celestino <japc@co.sapo.pt>
Thu, 22 May 2025 09:21:42 +0000 (10:21 +0100)
src/plugins/lua/multimap.lua

index b96c105b1e726f2c72694f6fbf7ae8f5f3501209..a9a32e93f8dd8ece95e00c750f11ddd34051c9a1 100644 (file)
@@ -1333,6 +1333,9 @@ local function add_multimap_rule(key, newrule)
       end
     elseif newrule['type'] == 'dnsbl' then
       ret = true
+    else
+      rspamd_logger.errx(rspamd_config, 'cannot add rule %s: invalid type %s',
+          key, newrule['type'])
     end
   end