diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-27 10:32:45 +0200 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-27 10:32:45 +0200 |
commit | c0e7b579a46a74bb6617eb331783f59123afad52 (patch) | |
tree | 1ff98ef23bc9a01ba6ceb989ef9baf3dd8d1fd4f /src/plugins/regexp.c | |
parent | d517ff598510688f2b4b0ff4619c95467a742e29 (diff) | |
download | rspamd-c0e7b579a46a74bb6617eb331783f59123afad52.tar.gz rspamd-c0e7b579a46a74bb6617eb331783f59123afad52.zip |
[Feature] Add `one_param` flag for metric symbols
Diffstat (limited to 'src/plugins/regexp.c')
-rw-r--r-- | src/plugins/regexp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c index deb5adab5..a88bde21b 100644 --- a/src/plugins/regexp.c +++ b/src/plugins/regexp.c @@ -285,6 +285,14 @@ regexp_module_config (struct rspamd_config *cfg) } } + elt = ucl_object_lookup (value, "one_param"); + + if (elt) { + if (ucl_object_toboolean (elt)) { + flags |= RSPAMD_SYMBOL_FLAG_ONEPARAM; + } + } + elt = ucl_object_lookup (value, "priority"); if (elt) { |