Browse Source
[Minor] Imply LEFTMOST flag on regexps with conditions
pull/4607/head
Vsevolod Stakhov
2 years ago
No known key found for this signature in database
GPG Key ID: 7647B6790081437
1 changed files with
3 additions and
0 deletions
-
src/libmime/mime_expressions.c
|
|
|
@ -854,6 +854,9 @@ set: |
|
|
|
|
|
|
|
if (lua_cbref != -1) { |
|
|
|
msg_info_config("added condition for regexp %s", mime_atom->str); |
|
|
|
/* Add SOM_LEFTMOST_FLAG implicitly */ |
|
|
|
rspamd_regexp_set_flags(mime_atom->d.re->regexp, rspamd_regexp_get_flags(mime_atom->d.re->regexp) | |
|
|
|
RSPAMD_REGEXP_FLAG_LEFTMOST); |
|
|
|
} |
|
|
|
|
|
|
|
/* Register new item in the cache */ |
|
|
|
|