aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/configs/multimap.conf
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-08-15 10:43:46 +0100
committerAndrew Lewis <nerf@judo.za.org>2016-08-15 10:43:46 +0100
commitf3b286c60f4f88509947be71d5d5cb8750f276b5 (patch)
tree596bee62a1b55dd60376c38a702a1127c8ae2ef4 /test/functional/configs/multimap.conf
parentec8deb48a9ee15f9fae84ae0ab4314e8600f7351 (diff)
downloadrspamd-f3b286c60f4f88509947be71d5d5cb8750f276b5.tar.gz
rspamd-f3b286c60f4f88509947be71d5d5cb8750f276b5.zip
[Test] Add test for multimap URL maps & filters
Diffstat (limited to 'test/functional/configs/multimap.conf')
-rw-r--r--test/functional/configs/multimap.conf30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/functional/configs/multimap.conf b/test/functional/configs/multimap.conf
index 7c75c7a91..e993b1f7d 100644
--- a/test/functional/configs/multimap.conf
+++ b/test/functional/configs/multimap.conf
@@ -62,4 +62,34 @@ multimap {
filter = "email:addr";
map = "redis://emailaddr";
}
+ REDIS_URL_TLD {
+ type = "url";
+ map = "redis://hostname";
+ filter = "tld";
+ }
+ REDIS_URL_RE_FULL {
+ type = "url";
+ map = "redis://fullurlre";
+ filter = "full:regexp:/(html)$/";
+ }
+ REDIS_URL_FULL {
+ type = "url";
+ map = "redis://fullurl";
+ filter = "full";
+ }
+ REDIS_URL_PHISHED {
+ type = "url";
+ map = "redis://phishedurl";
+ filter = "is_phished";
+ }
+ REDIS_URL_RE_TLD {
+ type = "url";
+ map = "redis://tldre";
+ filter = "tld:regexp:/(net)$/";
+ }
+ REDIS_URL_RE_PLAIN {
+ type = "url";
+ map = "redis://urlre";
+ filter = "regexp:/^(www)/";
+ }
}