Skip to content

Commit

Permalink
Merge pull request #4559 from fatalbanana/html_only
Browse files Browse the repository at this point in the history
[Minor] Test & fix has_only_html_part regression
  • Loading branch information
vstakhov committed Aug 2, 2023
2 parents 5e81edd + 8a1e1ec commit 30dce5f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/functional/cases/001_merged/100_general.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 30dce5f

Please sign in to comment.