Browse Source

Store symbol definition inside metric result.

tags/0.9.0
Vsevolod Stakhov 9 years ago
parent
commit
d16186f149
2 changed files with 2 additions and 0 deletions
  1. 1
    0
      src/libmime/filter.c
  2. 1
    0
      src/libmime/filter.h

+ 1
- 0
src/libmime/filter.c View File

@@ -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) {

+ 1
- 0
src/libmime/filter.h View File

@@ -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 {

Loading…
Cancel
Save