From: Pavel Rochnyack Date: Fri, 22 Nov 2019 05:15:11 +0000 (+0700) Subject: [Minor] Multimap: implemented matching authorized user X-Git-Tag: 2.3~315^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=69170b751e55c59ccdcce96d11574a0ad4d721c4;p=thirdparty%2Frspamd.git [Minor] Multimap: implemented matching authorized user --- diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index 06db71053e..3a53d24cb0 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -866,6 +866,12 @@ local function multimap_callback(task, rule) end end end, + user = function() + local user = task:get_user() + if user then + match_rule(rule, user) + end + end, filename = function() local parts = task:get_parts() @@ -1037,6 +1043,7 @@ local function add_multimap_rule(key, newrule) symbol_options = true, filename = true, url = true, + user = true, content = true, hostname = true, asn = true,