[Rspamd-Users] Control rspamd depending on subject content

Tino Hendricks t.hendricks at interpool.de
Thu Feb 29 20:11:47 UTC 2024


I fancy https://regexr.com/

T. 

> Am 29.02.2024 um 20:31 schrieb Gerald Galster <list+rspamd at gcore.biz>:
> 
> 
>> 
>> 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
> --
> Users mailing list
> Users at lists.rspamd.com
> https://lists.rspamd.com/mailman/listinfo/users


More information about the Users mailing list