Create fuzzy-html.conf with HTML-specific settings and use
RSPAMD_FUZZY_INCLUDE variable to include it in the fuzzy rule.
This is the correct way to add per-test rule settings.
HTML Fuzzy Setup Mumhash
Set Suite Variable ${RSPAMD_FUZZY_ALGORITHM} mumhash
Set Suite Variable ${RSPAMD_FUZZY_SERVER_MODE} servers
- # Use standard test flags and add HTML-specific settings
- Set Suite Variable ${SETTINGS_FUZZY_CHECK} servers = "${RSPAMD_LOCAL_ADDR}:${RSPAMD_PORT_FUZZY}"; html_shingles = true; min_html_tags = 5; html_weight = 1.0;
+ # Include HTML-specific settings via FUZZY_INCLUDE
+ Set Suite Variable ${RSPAMD_FUZZY_INCLUDE} ${RSPAMD_TESTDIR}/configs/fuzzy-html.conf
Rspamd Redis Setup
HTML Fuzzy Add Test
--- /dev/null
+# HTML fuzzy hashing settings for tests
+html_shingles = true;
+min_html_tags = 5;
+html_weight = 1.0;