aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/scan_result.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-22 12:32:38 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-22 12:32:38 +0100
commitc5e6bbff4a6efe44806d1c22beb9654d1d19776b (patch)
treeb27a73c93e5255bfcd36993b665c5a38df2b26c1 /src/libmime/scan_result.h
parent39fb3e04c4599a0e1071400fb94ecb7036a60643 (diff)
downloadrspamd-c5e6bbff4a6efe44806d1c22beb9654d1d19776b.tar.gz
rspamd-c5e6bbff4a6efe44806d1c22beb9654d1d19776b.zip
[Minor] Add method to remove symbol from a scan result
Diffstat (limited to 'src/libmime/scan_result.h')
-rw-r--r--src/libmime/scan_result.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/libmime/scan_result.h b/src/libmime/scan_result.h
index 2f20e2c62..4d55a8e62 100644
--- a/src/libmime/scan_result.h
+++ b/src/libmime/scan_result.h
@@ -149,7 +149,17 @@ struct rspamd_symbol_result *rspamd_task_insert_result_full (struct rspamd_task
#define rspamd_task_insert_result(task, symbol, flag, opts) \
rspamd_task_insert_result_full (task, symbol, flag, opts, RSPAMD_SYMBOL_INSERT_DEFAULT, NULL)
-
+/**
+ * Removes a symbol from a specific symbol result
+ * @param task
+ * @param symbol
+ * @param result
+ * @return
+ */
+struct rspamd_symbol_result* rspamd_task_remove_symbol_result (
+ struct rspamd_task *task,
+ const gchar *symbol,
+ struct rspamd_scan_result *result);
/**
* Adds new option to symbol
* @param task