[pmg-devel] applied: [PATCH pmg-api] ruledb: match field: improve handling of invalid regular expressions

Thomas Lamprecht t.lamprecht at proxmox.com
Wed May 17 12:11:02 CEST 2023


Am 14/04/2023 um 11:14 schrieb Dominik Csapak:
> by not saving them in the first place if they die during execution.
> We test this by using them once on an empty string.
> 
> Since users may have saved already invalid ones, only warn if we encounter
> such a regex in 'parse_entity' during execution instead of die'ing. Otherwise
> pmg-smtp-filter will exit and restart, possibly leading to wrongly denying
> mails (and possibly sending out NDRs) before spam checking was done.
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>  src/PMG/RuleDB/MatchField.pm | 17 +++++++++++++----
>  1 file changed, 13 insertions(+), 4 deletions(-)
> 
>

with Mira's R-b & T-b and slightly touching up commit message: applied, thanks!




More information about the pmg-devel mailing list