summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2023-08-02 16:35:16 +0200
committerAndrew Lewis <nerf@judo.za.org>2023-08-02 16:35:16 +0200
commit8a1e1ec63cf33e03bc164a7b782dbca33f97d6ab (patch)
tree10f1a2ba9fff6d227aec37b75d27436bf17dc0ff /test
parent8972626aa15dfb41b6bfd98efcde7bbbcddc20e2 (diff)
downloadrspamd-8a1e1ec63cf33e03bc164a7b782dbca33f97d6ab.tar.gz
rspamd-8a1e1ec63cf33e03bc164a7b782dbca33f97d6ab.zip
[Minor] Test & fix has_only_html_part regression
Diffstat (limited to 'test')
-rw-r--r--test/functional/cases/001_merged/100_general.robot10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/cases/001_merged/100_general.robot b/test/functional/cases/001_merged/100_general.robot
index b06dd1492..16b9b5f5a 100644
--- a/test/functional/cases/001_merged/100_general.robot
+++ b/test/functional/cases/001_merged/100_general.robot
@@ -49,3 +49,13 @@ EMAILS DETECTION ZEROFONT
... Settings={symbols_enabled = [MANY_INVISIBLE_PARTS, ZERO_FONT]}
Expect Symbol MANY_INVISIBLE_PARTS
Expect Symbol ZERO_FONT
+
+HTML ONLY - TRUE POSITIVE
+ Scan File ${RSPAMD_TESTDIR}/messages/zerofont.eml
+ ... Settings={symbols_enabled = [MIME_HTML_ONLY]}
+ Expect Symbol MIME_HTML_ONLY
+
+HTML ONLY - TRUE NEGATIVE
+ Scan File ${RSPAMD_TESTDIR}/messages/btc.eml
+ ... Settings={symbols_enabled = [MIME_HTML_ONLY]}
+ Do Not Expect Symbol MIME_HTML_ONLY