commit b8f697f: [Test] uribl in mail address html+txt
korgoth1
vladislav.stakhov at gmail.com
Fri Aug 30 18:21:05 UTC 2019
Author: korgoth1
Date: 2019-08-30 21:13:50 +0300
URL: https://github.com/rspamd/rspamd/commit/b8f697f622858510630a086ca243f8c375ef3075 (refs/pull/3023/head)
[Test] uribl in mail address html+txt
---
test/functional/cases/340_surbl.robot | 11 ++++++++++-
test/functional/messages/mailadr2.eml | 4 ++++
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/test/functional/cases/340_surbl.robot b/test/functional/cases/340_surbl.robot
index 58be332f8..d4bbc2848 100644
--- a/test/functional/cases/340_surbl.robot
+++ b/test/functional/cases/340_surbl.robot
@@ -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
index 000000000..3a2b9346f
--- /dev/null
+++ b/test/functional/messages/mailadr2.eml
@@ -0,0 +1,4 @@
+Content-Type: text/plain
+
+hello
+user at example.com
\ No newline at end of file
More information about the Commits
mailing list