Browse Source

[Minor] Imply LEFTMOST flag on regexps with conditions

pull/4607/head
Vsevolod Stakhov 2 years ago
parent
commit
e879458ea8
No known key found for this signature in database GPG Key ID: 7647B6790081437
  1. 3
      src/libmime/mime_expressions.c

3
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 */

Loading…
Cancel
Save