diff options
author | korgoth1 <vladislav.stakhov@gmail.com> | 2019-09-27 22:01:22 +0300 |
---|---|---|
committer | korgoth1 <vladislav.stakhov@gmail.com> | 2019-09-27 22:01:22 +0300 |
commit | f47059da1b4cab772a628fca8656d5dc2bd3a7ef (patch) | |
tree | a032383f4d589ce57da2fa2ab8f091185fa1e308 | |
parent | 8e5517a62b981fedc9e42d1323b066fadf086f1a (diff) | |
download | rspamd-f47059da1b4cab772a628fca8656d5dc2bd3a7ef.tar.gz rspamd-f47059da1b4cab772a628fca8656d5dc2bd3a7ef.zip |
[Test] Bad Boundary
-rw-r--r-- | test/functional/cases/280_rules.robot | 5 | ||||
-rw-r--r-- | test/functional/messages/badboundary.eml | 17 |
2 files changed, 22 insertions, 0 deletions
diff --git a/test/functional/cases/280_rules.robot b/test/functional/cases/280_rules.robot index d66ecf5d4..882fc7275 100644 --- a/test/functional/cases/280_rules.robot +++ b/test/functional/cases/280_rules.robot @@ -12,6 +12,7 @@ ${MESSAGE1} ${TESTDIR}/messages/fws_fn.eml ${MESSAGE2} ${TESTDIR}/messages/fws_fp.eml ${MESSAGE3} ${TESTDIR}/messages/fws_tp.eml ${MESSAGE4} ${TESTDIR}/messages/broken_richtext.eml +${MESSAGE5} ${TESTDIR}/messages/badboundary.eml ${URL_TLD} ${TESTDIR}/../lua/unit/test_tld.dat ${RSPAMD_SCOPE} Test @@ -40,6 +41,10 @@ Dynamic Config Check Rspamc ${result} SA_BODY_WORD (10 Check Rspamc ${result} \/ 20 +Broken boundary + ${result} = Scan Message With Rspamc ${MESSAGE4} + Check Rspamc ${result} BROKEN_CONTENT_TYPE + *** Keywords *** Rules Setup ${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/regexp.conf diff --git a/test/functional/messages/badboundary.eml b/test/functional/messages/badboundary.eml new file mode 100644 index 000000000..a298ee9d6 --- /dev/null +++ b/test/functional/messages/badboundary.eml @@ -0,0 +1,17 @@ +Content-Type: multipart/mixed; boundary="===============3209040583106423479=="
+MIME-Version: 1.0
+From: test@example.org
+To: test@example.org
+Date: Thu, 26 Sep 2019 15:52:32 -0000
+Subject: Test message
+Message-ID: <156951315267.43830.14912869070271436609@example.org>
+
+--===============3209040583106423479==
+Content-Type: image/gif
+MIME-Version: 1.0
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment; filename="Transparent.gif"
+
+R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
+
+--===============3209040583106423479==
\ No newline at end of file |