diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-08-25 19:38:18 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-08-25 19:38:18 +0400 |
commit | 671bbfa9cc85a625df33d6384a3179ce076765b9 (patch) | |
tree | ac77b0439bc08ce896b614e1a95641878d35d807 /src/protocol.h | |
parent | 331f6807e9ef813755f8ec197cc24915c458a684 (diff) | |
download | rspamd-671bbfa9cc85a625df33d6384a3179ce076765b9.tar.gz rspamd-671bbfa9cc85a625df33d6384a3179ce076765b9.zip |
* Add post filters to lua API - filters that would be called after all message's processing
* Add ability to check for specified symbol in task results from lua
* Add ability to check for metric's results from lua
* Add ability to learn specified statfile form lua
Diffstat (limited to 'src/protocol.h')
-rw-r--r-- | src/protocol.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/protocol.h b/src/protocol.h index c216259f6..affcccd5c 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -27,6 +27,8 @@ #define SPAMD_ERROR "EX_ERROR" struct worker_task; +enum rspamd_metric_action; +struct metric; enum rspamd_protocol { SPAMC_PROTO, @@ -75,4 +77,7 @@ gboolean write_reply (struct worker_task *task) G_GNUC_WARN_UNUSED_RESULT; */ void register_protocol_command (const char *name, protocol_reply_func func); +const char *str_action_metric (enum rspamd_metric_action action); +gint check_metric_action (double score, double required_score, struct metric *metric); + #endif |