diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-18 16:53:03 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-18 16:53:03 +0300 |
commit | 3527f0ec06ab68cc3faefe16f698bc04820d6948 (patch) | |
tree | 0f8e3f679cb732910a8b727742c49430ac482607 /src/filter.h | |
parent | 8227c09f9486642cd2792e760fe4659e25e05876 (diff) | |
download | rspamd-3527f0ec06ab68cc3faefe16f698bc04820d6948.tar.gz rspamd-3527f0ec06ab68cc3faefe16f698bc04820d6948.zip |
* Add function regexp_occurs_number that allows to test how much occurs of regexp can be found in a message
Fix composites logic. [1]
Fix composites registration from lua. [1]
Reported by: Victor Ustugov [1]
Diffstat (limited to 'src/filter.h')
-rw-r--r-- | src/filter.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/filter.h b/src/filter.h index 2a1d97edd..924e1eac9 100644 --- a/src/filter.h +++ b/src/filter.h @@ -98,6 +98,16 @@ void process_statfiles (struct worker_task *task); void insert_result (struct worker_task *task, const gchar *symbol, double flag, GList *opts); /** + * Insert a single result to task + * @param task worker's task that present message from user + * @param metric_name metric's name to which we need to insert result + * @param symbol symbol to insert + * @param flag numeric weight for symbol + * @param opts list of symbol's options + */ +void insert_result_single (struct worker_task *task, const gchar *symbol, double flag, GList *opts); + +/** * Process all results and form composite metrics from existent metrics as it is defined in config * @param task worker's task that present message from user */ |