diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-24 11:23:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-24 11:23:03 +0000 |
commit | ab7746a83fb484cf015d7a854a30e4bc7e730bcf (patch) | |
tree | 2237d409a5ebfca07c0726edad970a0703b606a3 | |
parent | b55d0b10c5c6df36a0753fbec56effa6427a3e46 (diff) | |
parent | efebc9e46c7ba7d614656be35015727135d4db80 (diff) | |
download | rspamd-ab7746a83fb484cf015d7a854a30e4bc7e730bcf.tar.gz rspamd-ab7746a83fb484cf015d7a854a30e4bc7e730bcf.zip |
Merge pull request #3163 from korgoth1/master
[Test] Url in .ics
-rw-r--r-- | test/functional/cases/102_multimap.robot | 5 | ||||
-rw-r--r-- | test/functional/messages/ics.eml | 53 |
2 files changed, 58 insertions, 0 deletions
diff --git a/test/functional/cases/102_multimap.robot b/test/functional/cases/102_multimap.robot index b495b5394..c403607fe 100644 --- a/test/functional/cases/102_multimap.robot +++ b/test/functional/cases/102_multimap.robot @@ -22,6 +22,7 @@ ${URL4} ${TESTDIR}/messages/url4.eml ${URL5} ${TESTDIR}/messages/url5.eml ${URL_TLD} ${TESTDIR}/../lua/unit/test_tld.dat ${FREEMAIL_CC} ${TESTDIR}/messages/freemailcc.eml +${URL_ICS} ${TESTDIR}/messages/ics.eml *** Test Cases *** MAP - DNSBL HIT @@ -326,6 +327,10 @@ 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] +URL_ICS + ${result} = Scan Message With Rspamc ${URL_ICS} + Check Rspamc ${result} Urls: ["test.com"] + *** Keywords *** Multimap Setup ${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/multimap.conf diff --git a/test/functional/messages/ics.eml b/test/functional/messages/ics.eml new file mode 100644 index 000000000..54563d041 --- /dev/null +++ b/test/functional/messages/ics.eml @@ -0,0 +1,53 @@ +Return-Path: <root@srv.example.com> +To: test@example.com +From: root@srv.example.com +Subject: test Sat, 26 Jan 2019 12:04:58 +0100 +Message-Id: <20190126120458.015328@srv.example.com> +Date: Sat, 26 Jan 2019 12:04:58 +0100 +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="_----------=_1574345186400022" + +--_----------=_1574345186400022 +Content-Type: multipart/alternative; boundary="_----------=_1574345186400023" + +This is a multi-part message in MIME format. + +--_----------=_1574345186400023 +Content-Disposition: inline +Content-Transfer-Encoding: quoted-printable +Content-Type: text/plain; charset="utf-8"; format="flowed" + + + +--_----------=_1574345186400023 +Content-Disposition: inline +Content-Transfer-Encoding: quoted-printable +Content-Type: text/html; charset="utf-8" + +<div><br data-mce-bogus=3D"1"></div>= + +--_----------=_1574345186400023-- + +--_----------=_1574345186400022 +Content-Disposition: attachment; filename="test2.ics" +Content-Transfer-Encoding: base64 +Content-Type: text/calendar; name="test.ics" + +QkVHSU46VkNBTEVOREFSDQpNRVRIT0Q6UFVCTElTSA0KVkVSU0lPTjoyLjANClgt +V1ItQ0FMTkFNRTp0ZXN0DQpQUk9ESUQ6LS8vQXBwbGUgSW5jLi8vTWFjIE9TIFgg +MTAuMTQuMy8vRU4NClgtQVBQTEUtQ0FMRU5EQVItQ09MT1I6IzFEOUJGNg0KWC1X +Ui1USU1FWk9ORTpFdXJvcGUvTW9zY293DQpDQUxTQ0FMRTpHUkVHT1JJQU4NCkJF +R0lOOlZUSU1FWk9ORQ0KVFpJRDpFdXJvcGUvTW9zY293DQpCRUdJTjpTVEFOREFS +RA0KVFpPRkZTRVRGUk9NOiswMjMwMTcNCkRUU1RBUlQ6MjAwMTAxMDFUMDAwMDAw +DQpUWk5BTUU6R01UKzMNClRaT0ZGU0VUVE86KzAyMzAxNw0KRU5EOlNUQU5EQVJE +DQpFTkQ6VlRJTUVaT05FDQpCRUdJTjpWRVZFTlQNCkNSRUFURUQ6MjAxOTExMjRU +MTA0ODE3Wg0KVUlEOkU3QUIxQkY2LTkyOTctNDJFNS05Njc4LTA1Nzk3QzM0OEVF +NA0KRFRFTkQ7VFpJRD1FdXJvcGUvTW9zY293OjIwMTkxMTIyVDEwMDAwMA0KVFJB +TlNQOk9QQVFVRQ0KWC1BUFBMRS1UUkFWRUwtQURWSVNPUlktQkVIQVZJT1I6QVVU +T01BVElDDQpTVU1NQVJZOmh0dHA6Ly90ZXN0LmNvbQ0KTEFTVC1NT0RJRklFRDoy +MDE5MTEyNFQxMDQ4MzFaDQpEVFNUQU1QOjIwMTkxMTI0VDEwNDgzMVoNCkRUU1RB +UlQ7VFpJRD1FdXJvcGUvTW9zY293OjIwMTkxMTIyVDA5MDAwMA0KU0VRVUVOQ0U6 +MA0KRU5EOlZFVkVOVA0KRU5EOlZDQUxFTkRBUg0K + + +--_----------=_1574345186400022--
\ No newline at end of file |