aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/messages
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/messages
parentec8deb48a9ee15f9fae84ae0ab4314e8600f7351 (diff)
downloadrspamd-f3b286c60f4f88509947be71d5d5cb8750f276b5.tar.gz
rspamd-f3b286c60f4f88509947be71d5d5cb8750f276b5.zip
[Test] Add test for multimap URL maps & filters
Diffstat (limited to 'test/functional/messages')
-rw-r--r--test/functional/messages/url1.eml3
-rw-r--r--test/functional/messages/url2.eml3
-rw-r--r--test/functional/messages/url3.eml3
-rw-r--r--test/functional/messages/url4.eml4
4 files changed, 13 insertions, 0 deletions
diff --git a/test/functional/messages/url1.eml b/test/functional/messages/url1.eml
new file mode 100644
index 000000000..42361ae2d
--- /dev/null
+++ b/test/functional/messages/url1.eml
@@ -0,0 +1,3 @@
+Content-Type: text/plain
+
+hello https://www.example.com/foo?a=b hello
diff --git a/test/functional/messages/url2.eml b/test/functional/messages/url2.eml
new file mode 100644
index 000000000..bfa72535f
--- /dev/null
+++ b/test/functional/messages/url2.eml
@@ -0,0 +1,3 @@
+Content-Type: text/plain
+
+hello https://www.rspamd.com/doc/modules/multimap.html hello
diff --git a/test/functional/messages/url3.eml b/test/functional/messages/url3.eml
new file mode 100644
index 000000000..eabfd983b
--- /dev/null
+++ b/test/functional/messages/url3.eml
@@ -0,0 +1,3 @@
+Content-Type: text/html
+
+hello <a href="https://www.rspamd.com/doc/modules/multimap.html">https://www.bank.com</a> hello
diff --git a/test/functional/messages/url4.eml b/test/functional/messages/url4.eml
new file mode 100644
index 000000000..eba4f873e
--- /dev/null
+++ b/test/functional/messages/url4.eml
@@ -0,0 +1,4 @@
+Content-Type: text/html
+
+hello <a href="https://example.com/">https://rspamd.tk</a> hello
+hello <a href="https://rspamd.com/doc/modules/multimap.html">https://rspamd.com</a> hello