]> source.dussan.org Git - rspamd.git/commitdiff
[Test] uribl in mail address html+txt 3023/head
authorkorgoth1 <vladislav.stakhov@gmail.com>
Fri, 30 Aug 2019 18:13:50 +0000 (21:13 +0300)
committerkorgoth1 <vladislav.stakhov@gmail.com>
Fri, 30 Aug 2019 18:13:50 +0000 (21:13 +0300)
test/functional/cases/340_surbl.robot
test/functional/messages/mailadr2.eml [new file with mode: 0644]

index 58be332f8279285905b658feb9446a6d2690d081..d4bbc2848f94340a3fa43099c075c7fa2f22fd34 100644 (file)
@@ -60,7 +60,7 @@ SURBL Example.com domain image false
   Should Not Contain  ${result.stdout}  DBL_PHISH (
   Should Not Contain  ${result.stdout}  URIBL_BLACK (
 
-SURBL @example.com mail
+SURBL @example.com mail html
   ${result} =  Scan Message With Rspamc  ${TESTDIR}/messages/mailadr.eml
   Should Contain  ${result.stdout}  URIBL_IN_MAIL (
   Should Not Contain  ${result.stdout}  RSPAMD_URIBL
@@ -69,6 +69,15 @@ SURBL @example.com mail
   Should Not Contain  ${result.stdout}  DBL_PHISH (
   Should Not Contain  ${result.stdout}  URIBL_BLACK (
 
+SURBL @example.com mail text
+  ${result} =  Scan Message With Rspamc  ${TESTDIR}/messages/mailadr2.eml
+  Should Contain  ${result.stdout}  URIBL_IN_MAIL (
+  Should Not Contain  ${result.stdout}  RSPAMD_URIBL
+  Should Not Contain  ${result.stdout}  DBL_SPAM (
+  Should Not Contain  ${result.stdout}  RSPAMD_URIBL (
+  Should Not Contain  ${result.stdout}  DBL_PHISH (
+  Should Not Contain  ${result.stdout}  URIBL_BLACK (
+
 *** Keywords ***
 Surbl Setup
   ${PLUGIN_CONFIG} =  Get File  ${TESTDIR}/configs/surbl.conf
diff --git a/test/functional/messages/mailadr2.eml b/test/functional/messages/mailadr2.eml
new file mode 100644 (file)
index 0000000..3a2b934
--- /dev/null
@@ -0,0 +1,4 @@
+Content-Type: text/plain
+
+hello
+user@example.com
\ No newline at end of file