diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-10-21 20:30:26 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-10-21 21:01:26 +0200 |
commit | 0e7f79283100244b1d2b4ae5598451fc56a6d3e6 (patch) | |
tree | 7ab4b1bb999ed23b96e13f0722847c37f594a8e8 /test | |
parent | e9b77979a4947297e94e36a90f3fc3429f96becb (diff) | |
download | rspamd-0e7f79283100244b1d2b4ae5598451fc56a6d3e6.tar.gz rspamd-0e7f79283100244b1d2b4ae5598451fc56a6d3e6.zip |
[Test] e-Mail detection
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/cases/100_general.robot | 6 | ||||
-rw-r--r-- | test/functional/configs/trivial.conf | 1 | ||||
-rw-r--r-- | test/functional/messages/emails1.eml | 8 |
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 |