aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/scan_result.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-27 16:52:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-27 16:52:10 +0100
commit76cef50178e9dc66f18e2eeab0e6dcc7a65b2830 (patch)
treeea7c16c7cad36c89254d987fb54625b9c6977125 /src/libmime/scan_result.h
parentfdb95403bfa6a2cf33cbb1424b62caaf7245525d (diff)
downloadrspamd-76cef50178e9dc66f18e2eeab0e6dcc7a65b2830.tar.gz
rspamd-76cef50178e9dc66f18e2eeab0e6dcc7a65b2830.zip
[Rework] Allow to specify exat metric result when adding a symbol
Diffstat (limited to 'src/libmime/scan_result.h')
-rw-r--r--src/libmime/scan_result.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libmime/scan_result.h b/src/libmime/scan_result.h
index 3dee11ddd..2f20e2c62 100644
--- a/src/libmime/scan_result.h
+++ b/src/libmime/scan_result.h
@@ -141,12 +141,13 @@ struct rspamd_symbol_result *rspamd_task_insert_result_full (struct rspamd_task
const gchar *symbol,
double weight,
const gchar *opts,
- enum rspamd_symbol_insert_flags flags);
+ 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)
+ 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)
+ rspamd_task_insert_result_full (task, symbol, flag, opts, RSPAMD_SYMBOL_INSERT_DEFAULT, NULL)
/**