summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-14 18:26:31 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-14 18:26:31 +0100
commitd16186f149e92f702e2e02de3ce76f4aa22ce28f (patch)
treede141cea80496197ad82ed10207478a2b6f41bb1
parentf9ca3cf827fac604a85b2642d64f6632db2a9810 (diff)
downloadrspamd-d16186f149e92f702e2e02de3ce76f4aa22ce28f.tar.gz
rspamd-d16186f149e92f702e2e02de3ce76f4aa22ce28f.zip
Store symbol definition inside metric result.
-rw-r--r--src/libmime/filter.c1
-rw-r--r--src/libmime/filter.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/libmime/filter.c b/src/libmime/filter.c
index c6d038ca7..281230c45 100644
--- a/src/libmime/filter.c
+++ b/src/libmime/filter.c
@@ -227,6 +227,7 @@ insert_metric_result (struct rspamd_task *task,
s->score = w;
s->name = symbol;
+ s->def = sdef;
metric_res->score += w;
if (opts) {
diff --git a/src/libmime/filter.h b/src/libmime/filter.h
index 49cb7e465..f763c3b8a 100644
--- a/src/libmime/filter.h
+++ b/src/libmime/filter.h
@@ -36,6 +36,7 @@ struct symbol {
double score; /**< symbol's score */
GList *options; /**< list of symbol's options */
const gchar *name;
+ struct rspamd_symbol_def *def; /**< symbol configuration */
};
struct metric_action {