diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-22 09:15:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-22 09:15:09 +0000 |
commit | eb8369eff005b7c2c7bbcbda41284272b47fa96c (patch) | |
tree | 1b96065b9826649dd8a3aaf66cc038b0d5987beb /src | |
parent | 7259db62ec1056de5550f0a495ebd777c879fab2 (diff) | |
parent | 69170b751e55c59ccdcce96d11574a0ad4d721c4 (diff) | |
download | rspamd-eb8369eff005b7c2c7bbcbda41284272b47fa96c.tar.gz rspamd-eb8369eff005b7c2c7bbcbda41284272b47fa96c.zip |
Merge pull request #3158 from rpv-tomsk/master
[Minor] Multimap: implemented matching authorized user
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/multimap.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index 06db71053..3a53d24cb 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, |