aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/surbl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-13 21:14:42 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-13 21:14:42 +0000
commit736880fc8bdb72f06e6a20abb218ad578ae43817 (patch)
tree578f1a9f4d4f3205e09288b6d54452b6ab82fe37 /src/plugins/surbl.c
parentb4ba6f65a0231eae9a777e42e4662b104049554a (diff)
downloadrspamd-736880fc8bdb72f06e6a20abb218ad578ae43817.tar.gz
rspamd-736880fc8bdb72f06e6a20abb218ad578ae43817.zip
[Feature] Allow data for all maps types
Diffstat (limited to 'src/plugins/surbl.c')
-rw-r--r--src/plugins/surbl.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index b87e79f0d..df22b1610 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -120,11 +120,12 @@ read_exceptions_list (rspamd_mempool_t * pool,
data->cur_data = rspamd_mempool_alloc0 (pool,
sizeof (GHashTable *) * MAX_LEVELS);
}
- return rspamd_parse_abstract_list (pool,
+ return rspamd_parse_kv_list (pool,
chunk,
len,
data,
- (insert_func) exception_insert);
+ (insert_func) exception_insert,
+ "");
}
static void
@@ -223,11 +224,12 @@ read_redirectors_list (rspamd_mempool_t * pool,
data->cur_data = cbdata;
}
- return rspamd_parse_abstract_list (pool,
+ return rspamd_parse_kv_list (pool,
chunk,
len,
data,
- (insert_func) redirector_insert);
+ (insert_func) redirector_insert,
+ "");
}
void