Browse Source

Honor one_shot setting for symbols.

tags/0.7.2
Vsevolod Stakhov 9 years ago
parent
commit
04adaf3f61
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      src/libmime/filter.c

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

@@ -138,6 +138,13 @@ insert_metric_result (struct rspamd_task *task,

/* Add metric score */
if ((s = g_hash_table_lookup (metric_res->symbols, symbol)) != NULL) {
if (sdef && sdef->one_shot) {
/*
* For one shot symbols we do not need to add them again, so
* we just force single behaviour here
*/
single = TRUE;
}
if (s->options && opts && opts != s->options) {
/* Append new options */
s->options = g_list_concat (s->options, g_list_copy (opts));

Loading…
Cancel
Save