]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Add html_features.h include to fuzzy_check.c
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 4 Oct 2025 18:41:22 +0000 (19:41 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 4 Oct 2025 18:41:22 +0000 (19:41 +0100)
Required for accessing rspamd_html_features->tags_count field
when checking HTML fuzzy hash thresholds.

src/plugins/fuzzy_check.c

index 9d83b7896d51ba248043779572fd2343e9db7e2d..0afdfba67aa6f18304923cc259687cae3c2f0842 100644 (file)
@@ -37,6 +37,7 @@
 #include "libmime/images.h"
 #include "libserver/worker_util.h"
 #include "libserver/mempool_vars_internal.h"
+#include "libserver/html/html_features.h"
 #include "fuzzy_wire.h"
 #include "utlist.h"
 #include "ottery.h"
@@ -99,7 +100,7 @@ struct fuzzy_rule {
        gboolean skip_unknown;
        gboolean no_share;
        gboolean no_subject;
-       gboolean html_shingles; /* Enable HTML fuzzy hashing */
+       gboolean html_shingles;     /* Enable HTML fuzzy hashing */
        unsigned int min_html_tags; /* Minimum tags for HTML hash */
        int learn_condition_cb;
        uint32_t retransmits;