[Rspamd-Users] Control rspamd depending on subject content
Gerald Galster
list+rspamd at gcore.biz
Thu Feb 29 19:27:41 UTC 2024
> that’s
> postfix/cleanup[2579711]: A196112007E: milter-reject: END-OF-MESSAGE from mail-
> lj1-x236.google.com <http://lj1-x236.google.com/>[2a00:1450:4864:20::236]: 5.7.1 Matched map: BLOCK_SUBJECT
>
> what I want to see.
> True, sometimes the devil is in the details. I overlooked that with the dots
> in the regexes.
If you're unsure, test your regexes with perl (pcre = perl compatible regular expressions):
$ echo "info prescription-free pharmacy" | perl -ne '/pres.*?pharma/ ? print "MATCH\n" : print "NO_MATCH\n"'
MATCH
$ echo "info prescription-free pharmacy" | perl -ne '/pres.*?pharmaABCDEFG/ ? print "MATCH\n" : print "NO_MATCH\n"'
NO_MATCH
More about perl regular expressions:
https://perldoc.perl.org/perlre
Best regards,
Gerald
More information about the Users
mailing list