From: korgoth1 Date: Sun, 29 Sep 2019 12:57:05 +0000 (+0300) Subject: [Test] Bad boundary+FreemailCC X-Git-Tag: 2.0~99^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=be0972dc5bc3e4667764cb610a42c788279f546c;p=rspamd.git [Test] Bad boundary+FreemailCC --- 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@example.org +To: test@example.org +CC: , , ,,,,,,,,,,,,,,,,, +Date: Thu, 26 Sep 2019 15:52:32 -0000 +Subject: Test message +Message-ID: <156951315267.43830.14912869070271436609@example.org> + +skdjaskdjasd \ No newline at end of file