]> source.dussan.org Git - rspamd.git/commitdiff
[Test] SPF for relay
authorkorgoth1 <vladislav.stakhov@gmail.com>
Sat, 7 Dec 2019 20:46:50 +0000 (23:46 +0300)
committerkorgoth1 <vladislav.stakhov@gmail.com>
Sat, 7 Dec 2019 20:46:50 +0000 (23:46 +0300)
test/functional/cases/340_surbl.robot
test/functional/messages/url10.eml [new file with mode: 0644]

index 5137223bf538c02d1086e5ef47c407e597dea595..71bd4285ac805992cfd058723d9dfdc5725ee058 100644 (file)
@@ -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 (file)
index 0000000..3b43e9e
--- /dev/null
@@ -0,0 +1,4 @@
+Content-Type: text/html
+Content-Transfer-Encoding: quoted-printable
+
+<a href="https:/\test&shy;test.&shy;com/redirect?url=https%3A%2F%2Fexample%2Ecom&amp;urlhash=rH0t#100xp@example.com">
\ No newline at end of file