${MIXED_RELATED_HTML} ${RSPAMD_TESTDIR}/messages/mixed-related-html-only.eml
${ALT_NESTED_RFC822} ${RSPAMD_TESTDIR}/messages/alternative-nested-rfc822.eml
${ALT_EMPTY_RELATED} ${RSPAMD_TESTDIR}/messages/alternative-empty-related.eml
+${MIXED_HTML_ZIP} ${RSPAMD_TESTDIR}/messages/mixed-html-zip.eml
${SETTINGS_NOSYMBOLS} {symbols_enabled = []}
*** Test Cases ***
Scan File ${ALT_EMPTY_RELATED}
... Settings={symbols_enabled = [MIME_HTML_ONLY]}
Expect Symbol MIME_HTML_ONLY
+
+HTML ONLY - multipart/mixed with html and non-text attachment
+ Scan File ${MIXED_HTML_ZIP}
+ ... Settings={symbols_enabled = [MIME_HTML_ONLY]}
+ Expect Symbol MIME_HTML_ONLY
--- /dev/null
+Return-Path: test@test.com
+From: TEST <test@test.com>
+To: Me <me@me.me>
+Subject: multipart/mixed with html and zip attachment
+MIME-Version: 1.0
+Date: Mon, 01 Jan 2024 00:00:00 +0000
+Message-ID: <mixed-html-zip@test.com>
+Content-Type: multipart/mixed; boundary="a3f1e7d94b2c80569e1f3a7d6c4b2e8f"
+
+--a3f1e7d94b2c80569e1f3a7d6c4b2e8f
+Content-Type: text/html
+
+<html>
+<body>
+<p>This is an HTML-only message with a zip attachment.</p>
+<a href="https://example.com">Click here</a>
+</body>
+</html>
+
+--a3f1e7d94b2c80569e1f3a7d6c4b2e8f
+Content-Type: application/zip; name="ComplaintLetter_1508658544.zip"
+
+UEsDBBQAAAAIAGRlZmF1bHQAAAAAAAAAAAAAAAALABAAZHVtbXkudHh0VVgMAGR1bW15
+--a3f1e7d94b2c80569e1f3a7d6c4b2e8f--