]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Enable FALLBACK mode for RE multipatterns (stop words)
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 11 Jan 2026 11:38:22 +0000 (11:38 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 11 Jan 2026 11:38:22 +0000 (11:38 +0000)
commitb6ee853d68a8da91c0ed54cf865dc21d6bcbd975
treef1b9c0ac6f35936b4d60f32e2394db290833c0d1
parent932a8fb969cb7ff69538927b3bfc67b88ceed2a7
[Fix] Enable FALLBACK mode for RE multipatterns (stop words)

- Create pats array for all multipatterns, not just TLD
- Use rspamd_multipattern_build_acism() for proper RE fallback
- Add regex fallback path in lookup while HS is compiling
- Clean up mp->res in destructor for hyperscan path

This fixes stop words multipatterns which use RSPAMD_MULTIPATTERN_RE
to properly use FALLBACK mode instead of falling through to SYNC mode
and creating .hs files during config loading.
src/libutil/multipattern.c