diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2017-12-06 22:50:19 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2017-12-06 23:22:27 +0300 |
commit | c0b636ed17c1b96d7ae5bb4fc7ae2a98bd75196e (patch) | |
tree | f7b51f59d8b1f4124fd8d6534720221831626c11 /test/functional | |
parent | d7442a934fa1c66c1954ec103cf66f6a80ede16b (diff) | |
download | rspamd-c0b636ed17c1b96d7ae5bb4fc7ae2a98bd75196e.tar.gz rspamd-c0b636ed17c1b96d7ae5bb4fc7ae2a98bd75196e.zip |
[Test] Add test for date followed by bad extension
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/cases/105_mimetypes.robot | 4 | ||||
-rw-r--r-- | test/functional/messages/rar-date-bad-ext.eml | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/cases/105_mimetypes.robot b/test/functional/cases/105_mimetypes.robot index 1756377d4..5e3860ef4 100644 --- a/test/functional/cases/105_mimetypes.robot +++ b/test/functional/cases/105_mimetypes.robot @@ -23,6 +23,10 @@ Next-to-last Double Bad Extension ${result} = Scan Message With Rspamc ${TESTDIR}/messages/next2last-doublebad.eml Check Rspamc ${result} MIME_DOUBLE_BAD_EXTENSION \\(\\d+\\.\\d+\\)\\[\\.scr\\.xz\\]\\n re=1 +Date is followed by Bad Extension + ${result} = Scan Message With Rspamc ${TESTDIR}/messages/rar-date-bad-ext.eml + Check Rspamc ${result} MIME_BAD_EXTENSION \\(\\d+\\.\\d+\\)\\[scr\\]\\n re=1 + Rar4 ${result} = Scan Message With Rspamc ${TESTDIR}/messages/rar4.eml Check Rspamc ${result} MIME_BAD_EXTENSION \\(\\d+\\.\\d+\\)\\[exe\\]\\n re=1 diff --git a/test/functional/messages/rar-date-bad-ext.eml b/test/functional/messages/rar-date-bad-ext.eml new file mode 100644 index 000000000..309efece9 --- /dev/null +++ b/test/functional/messages/rar-date-bad-ext.eml @@ -0,0 +1,10 @@ +Content-Type: multipart/mixed; boundary="--=_CDA2A73617693A02A72D9869" + +----=_CDA2A73617693A02A72D9869 +Content-Type: application/octet-stream; name="06.12.2017.gz" +Content-Disposition: attachment; filename="06.12.2017.gz" +Content-Transfer-Encoding: base64 + +UmFyIRoHAM+QcwAADQAAAAAAAAATSHQgkDMAAgAAAAIAAAACEs1KfkazhksdMA4AICAAADA2 +LjEyLjIwMTcuc2NyALB/OjwwCsQ9ewBABwA= +----=_CDA2A73617693A02A72D9869-- |