diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-17 15:18:37 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-17 15:18:37 +0300 |
commit | a5899a828367d0ff16534771c561e44ae7af632d (patch) | |
tree | bb1a051c7023664db90fcec9f8ea3de918d6690f /src/lua/lua_cfg_file.c | |
parent | 0c53751a9afce121ec5da230d942e722b6f8f460 (diff) | |
download | rspamd-a5899a828367d0ff16534771c561e44ae7af632d.tar.gz rspamd-a5899a828367d0ff16534771c561e44ae7af632d.zip |
Fix parsing emails with '_' symbol.
Fix adding metric symbol.
Diffstat (limited to 'src/lua/lua_cfg_file.c')
-rw-r--r-- | src/lua/lua_cfg_file.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lua/lua_cfg_file.c b/src/lua/lua_cfg_file.c index e4f0734af..8c44ab809 100644 --- a/src/lua/lua_cfg_file.c +++ b/src/lua/lua_cfg_file.c @@ -174,7 +174,9 @@ lua_process_metric (lua_State *L, const gchar *name, struct config_file *cfg) } else { /* Slow but keep start element of list in safe */ - metric_list = g_list_append (metric_list, metric); + if (!g_list_find (metric_list, metric)) { + metric_list = g_list_append (metric_list, metric); + } } } } |