aboutsummaryrefslogtreecommitdiffstats
path: root/src/filter.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-03 13:44:50 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-03 13:44:50 +0300
commit3ff032cf72164dc9aa8575c0a631f7c7b0079f46 (patch)
tree98a7b11bf70232a6c0825591957352f2d4acc9b9 /src/filter.h
parentf972cde13ca98f6ed992a288826467abf04c888a (diff)
downloadrspamd-3ff032cf72164dc9aa8575c0a631f7c7b0079f46.tar.gz
rspamd-3ff032cf72164dc9aa8575c0a631f7c7b0079f46.zip
* New rspamd protocol (changed replies)
* Add ability to attach string lists to symbols * Check destructors and do not add identical destructors (argument and function) to pool's destructors * Remove 2 warnings when building with gmime22 * Attach url names to surbl symbols * Fix bug with blocking on read (I think it is linux specific thought)
Diffstat (limited to 'src/filter.h')
-rw-r--r--src/filter.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/filter.h b/src/filter.h
index c0b113dbd..02fc60c63 100644
--- a/src/filter.h
+++ b/src/filter.h
@@ -25,6 +25,14 @@ struct filter {
};
/**
+ * Rspamd symbol
+ */
+struct symbol {
+ double score; /**< symbol's score */
+ GList *options; /**< list of symbol's options */
+};
+
+/**
* Common definition of metric
*/
struct metric {
@@ -63,8 +71,9 @@ void process_statfiles (struct worker_task *task);
* @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 (struct worker_task *task, const char *metric_name, const char *symbol, double flag);
+void insert_result (struct worker_task *task, const char *metric_name, const char *symbol, double flag, GList *opts);
/**
* Process all results and form composite metrics from existent metrics as it is defined in config