diff options
-rw-r--r-- | src/libmime/filter.c | 1 | ||||
-rw-r--r-- | src/libmime/filter.h | 1 |
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 { |