]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Store symbol definition inside metric result.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 14 Apr 2015 17:26:31 +0000 (18:26 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 14 Apr 2015 17:26:31 +0000 (18:26 +0100)
src/libmime/filter.c
src/libmime/filter.h

index c6d038ca7a4054724d817d8322ce8681c49082cd..281230c458b4939c7d0de27e7936c409d83bb51b 100644 (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) {
index 49cb7e46562a4fe1fa8d271c8fd0d2c1756fef3b..f763c3b8ab685c1a85ccbc9cc291724d427e32e8 100644 (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 {