diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-06 18:18:07 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-06 18:18:07 +0000 |
commit | 96fdcd7cc836df8b6ea99ca0551aab4adfe6179b (patch) | |
tree | 8f338637af97e53535e143964b2b4f827e11046b /src/libstat/stat_api.h | |
parent | e3a8596ecf51168910c71ae2891ebb4450ffcb0f (diff) | |
download | rspamd-96fdcd7cc836df8b6ea99ca0551aab4adfe6179b.tar.gz rspamd-96fdcd7cc836df8b6ea99ca0551aab4adfe6179b.zip |
Implement autolearn
Diffstat (limited to 'src/libstat/stat_api.h')
-rw-r--r-- | src/libstat/stat_api.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstat/stat_api.h b/src/libstat/stat_api.h index a63ee3734..28fbf2429 100644 --- a/src/libstat/stat_api.h +++ b/src/libstat/stat_api.h @@ -68,6 +68,13 @@ rspamd_stat_result_t rspamd_stat_classify (struct rspamd_task *task, /** + * Check if a task should be learned and set the appropriate flags for it + * @param task + * @return + */ +gboolean rspamd_stat_check_autolearn (struct rspamd_task *task); + +/** * Learn task as spam or ham, task must be processed prior to this call * @param task task to learn * @param spam if TRUE learn spam, otherwise learn ham |