commit be0972d: [Test] Bad boundary+FreemailCC
korgoth1
vladislav.stakhov at gmail.com
Sun Sep 29 19:07:08 UTC 2019
Author: korgoth1
Date: 2019-09-29 15:57:05 +0300
URL: https://github.com/rspamd/rspamd/commit/be0972dc5bc3e4667764cb610a42c788279f546c
[Test] Bad boundary+FreemailCC
---
test/functional/cases/102_multimap.robot | 5 +++++
test/functional/configs/maps/domains.list.2 | 14 ++++++++++++++
test/functional/configs/multimap.conf | 6 ++++++
test/functional/messages/freemailcc.eml | 10 ++++++++++
4 files changed, 35 insertions(+)
diff --git a/test/functional/cases/102_multimap.robot b/test/functional/cases/102_multimap.robot
index 594faf0b6..b495b5394 100644
--- a/test/functional/cases/102_multimap.robot
+++ b/test/functional/cases/102_multimap.robot
@@ -21,6 +21,7 @@ ${URL3} ${TESTDIR}/messages/url3.eml
${URL4} ${TESTDIR}/messages/url4.eml
${URL5} ${TESTDIR}/messages/url5.eml
${URL_TLD} ${TESTDIR}/../lua/unit/test_tld.dat
+${FREEMAIL_CC} ${TESTDIR}/messages/freemailcc.eml
*** Test Cases ***
MAP - DNSBL HIT
@@ -321,6 +322,10 @@ RCVD_AUTHED_TWO HIT / RCVD_AUTHED_ONE MISS
Check Rspamc ${result} RCVD_AUTHED_TWO
Should Not Contain ${result.stdout} RCVD_AUTHED_ONE
+FREEMAIL_CC
+ ${result} = Scan Message With Rspamc ${FREEMAIL_CC}
+ Check Rspamc ${result} FREEMAIL_CC (19.00)[test.com, test1.com, test2.com, test3.com, test4.com, test5.com, test6.com, test7.com, test8.com, test9.com, test10.com, test11.com, test12.com, test13.com, test14.com]
+
*** Keywords ***
Multimap Setup
${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/multimap.conf
diff --git a/test/functional/configs/maps/domains.list.2 b/test/functional/configs/maps/domains.list.2
index 45cd0b2ec..15fb90830 100644
--- a/test/functional/configs/maps/domains.list.2
+++ b/test/functional/configs/maps/domains.list.2
@@ -1,2 +1,16 @@
rspamd-test.com
+test.com
+test2.com
+test3.com
+test4.com
+test5.com
+test6.com
+test7.com
+test8.com
+test9.com
+test10.com
+test11.com
+test12.com
+test13.com
+test14.com
#other.com
diff --git a/test/functional/configs/multimap.conf b/test/functional/configs/multimap.conf
index f003ec96e..804284b11 100644
--- a/test/functional/configs/multimap.conf
+++ b/test/functional/configs/multimap.conf
@@ -18,6 +18,12 @@ multimap {
filter = "email:domain";
map = "${TESTDIR}/configs/maps/domains.list";
}
+ FREEMAIL_CC {
+ type = "header";
+ header = "Cc";
+ filter = "email:domain";
+ map = "${TESTDIR}/configs/maps/domains.list.2";
+ }
REGEXP_MAP {
type = "from";
filter = "email:addr";
diff --git a/test/functional/messages/freemailcc.eml b/test/functional/messages/freemailcc.eml
new file mode 100644
index 000000000..6926c6e2f
--- /dev/null
+++ b/test/functional/messages/freemailcc.eml
@@ -0,0 +1,10 @@
+Content-Type: multipart/mixed; boundary="===============3209040583106423479=="
+MIME-Version: 1.0
+From: test at example.org
+To: test at example.org
+CC: <testp at test.com>, <testp1 at test1.com>, <testp2 at test2.com>,<testp3 at test3.com>,<testp4 at test4.com>,<testp5 at test5.com>,<testp6 at test6.com>,<testp7 at test7.com>,<testp8 at test8.com>,<testp9 at test9.com>,<testp10 at test10.com>,<testp11 at test11.com>,<testp12 at test12.com>,<testp13 at test13.com>,<testp14 at test14.com>,<testp15 at test.com>,<testp16 at test.com>,<testp17 at test.com>,<testp18 at test.com>,<test19 at test.com>
+Date: Thu, 26 Sep 2019 15:52:32 -0000
+Subject: Test message
+Message-ID: <156951315267.43830.14912869070271436609 at example.org>
+
+skdjaskdjasd
\ No newline at end of file
More information about the Commits
mailing list