diff options
author | Andrew Lewis <nerf@judo.za.org> | 2023-08-02 16:35:16 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2023-08-02 16:35:16 +0200 |
commit | 8a1e1ec63cf33e03bc164a7b782dbca33f97d6ab (patch) | |
tree | 10f1a2ba9fff6d227aec37b75d27436bf17dc0ff /test | |
parent | 8972626aa15dfb41b6bfd98efcde7bbbcddc20e2 (diff) | |
download | rspamd-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.robot | 10 |
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 |