aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/functional/cases/100_general.robot6
-rw-r--r--test/functional/configs/trivial.conf1
-rw-r--r--test/functional/messages/emails1.eml8
3 files changed, 15 insertions, 0 deletions
diff --git a/test/functional/cases/100_general.robot b/test/functional/cases/100_general.robot
index c07484ad2..31d82c4f8 100644
--- a/test/functional/cases/100_general.robot
+++ b/test/functional/cases/100_general.robot
@@ -40,3 +40,9 @@ GTUBE - RSPAMC
${result} = Rspamc ${LOCAL_ADDR} ${PORT_NORMAL} ${GTUBE}
Follow Rspamd Log
Should Contain ${result} GTUBE
+
+EMAILS DETECTION 1
+ ${result} = Scan Message With Rspamc ${TESTDIR}/messages/emails1.eml
+ Check Rspamc ${result} "jim@example.net"
+ Should Contain ${result.stdout} "bob@example.net"
+ Should Contain ${result.stdout} "rupert@example.net"
diff --git a/test/functional/configs/trivial.conf b/test/functional/configs/trivial.conf
index 81dd8f0c6..4a16554ca 100644
--- a/test/functional/configs/trivial.conf
+++ b/test/functional/configs/trivial.conf
@@ -8,6 +8,7 @@ options = {
}
}
logging = {
+ log_urls = true;
type = "file",
level = "debug"
filename = "${TMPDIR}/rspamd.log"
diff --git a/test/functional/messages/emails1.eml b/test/functional/messages/emails1.eml
new file mode 100644
index 000000000..8d0c19cdd
--- /dev/null
+++ b/test/functional/messages/emails1.eml
@@ -0,0 +1,8 @@
+Content-type: text/plain
+
+mailme
+bob@example.net
+mailme*
+jim@example.net
+mailme rupert@example.net
+.net