diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-22 13:00:24 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-22 13:00:24 +0100 |
commit | 876a816414bc2333c077ed8bc55cc1261b4d093a (patch) | |
tree | e4de8964eee5810b958578fbaf7924bb84cc23c7 /src/libmime | |
parent | bb582f23a0f5aef76ae05dc116778a1afdb0fe2a (diff) | |
download | rspamd-876a816414bc2333c077ed8bc55cc1261b4d093a.tar.gz rspamd-876a816414bc2333c077ed8bc55cc1261b4d093a.zip |
[Feature] Fuzzy_check: Add weight_threshold option for fuzzy rules
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/scan_result.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libmime/scan_result.h b/src/libmime/scan_result.h index 4d55a8e62..edba4d491 100644 --- a/src/libmime/scan_result.h +++ b/src/libmime/scan_result.h @@ -144,10 +144,10 @@ struct rspamd_symbol_result *rspamd_task_insert_result_full (struct rspamd_task enum rspamd_symbol_insert_flags flags, struct rspamd_scan_result *result); -#define rspamd_task_insert_result_single(task, symbol, flag, opts) \ - rspamd_task_insert_result_full (task, symbol, flag, opts, RSPAMD_SYMBOL_INSERT_SINGLE, NULL) -#define rspamd_task_insert_result(task, symbol, flag, opts) \ - rspamd_task_insert_result_full (task, symbol, flag, opts, RSPAMD_SYMBOL_INSERT_DEFAULT, NULL) +#define rspamd_task_insert_result_single(task, symbol, weight, opts) \ + rspamd_task_insert_result_full ((task), (symbol), (weight), (opts), RSPAMD_SYMBOL_INSERT_SINGLE, NULL) +#define rspamd_task_insert_result(task, symbol, weight, opts) \ + rspamd_task_insert_result_full ((task), (symbol), (weight), (opts), RSPAMD_SYMBOL_INSERT_DEFAULT, NULL) /** * Removes a symbol from a specific symbol result |