commit 1e38f59: [Test] SPF for relay

korgoth1 vladislav.stakhov at gmail.com
Sat Dec 7 20:56:10 UTC 2019


Author: korgoth1
Date: 2019-12-07 23:46:50 +0300
URL: https://github.com/rspamd/rspamd/commit/1e38f5941625b4b45bd56169e4741471817a881a

[Test] SPF for relay

---
 test/functional/cases/340_surbl.robot | 3 +++
 test/functional/messages/url10.eml    | 4 ++++
 2 files changed, 7 insertions(+)

diff --git a/test/functional/cases/340_surbl.robot b/test/functional/cases/340_surbl.robot
index 5137223bf..71bd4285a 100644
--- a/test/functional/cases/340_surbl.robot
+++ b/test/functional/cases/340_surbl.robot
@@ -141,6 +141,9 @@ SURBL IDN Punycode domain
   Should Not Contain  ${result.stdout}  DBL_PHISH
   Should Not Contain  ${result.stdout}  URIBL_BLACK
 
+SURBL html entity &shy
+  ${result} =  Scan Message With Rspamc  ${TESTDIR}/messages/url10.eml
+  Should Contain  ${result.stdout}  RSPAMD_URIBL
 
 *** Keywords ***
 Surbl Setup
diff --git a/test/functional/messages/url10.eml b/test/functional/messages/url10.eml
new file mode 100644
index 000000000..3b43e9e08
--- /dev/null
+++ b/test/functional/messages/url10.eml
@@ -0,0 +1,4 @@
+Content-Type: text/html
+Content-Transfer-Encoding: quoted-printable
+
+<a href="https:/\test­test.­com/redirect?url=https%3A%2F%2Fexample%2Ecom&urlhash=rH0t#100xp at example.com">
\ No newline at end of file


More information about the Commits mailing list