From d16186f149e92f702e2e02de3ce76f4aa22ce28f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 14 Apr 2015 18:26:31 +0100 Subject: Store symbol definition inside metric result. --- src/libmime/filter.c | 1 + src/libmime/filter.h | 1 + 2 files changed, 2 insertions(+) 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 { -- cgit v1.2.3