On Thu, Jun 20, 2024 at 02:33:08PM +0200, Michael Grimm via Postfix-users wrote:
> > One could try some variant of /^X-Spam-Status: Yes, score=[5-9]/ > > Please correct me if I am mistaken, but that won't catch scores >= 10? Yes, but easily adapted. > But I don't know how such a regex should be defined. PCRE: /^X-Spam-Status: Yes, score=(?:[5-9]|[1-9]\d)/ ... ARE: /^X-Spam-Status: Yes, score=([5-9]|[1-9][0-9])/ ... Or, simpler, two tests, be it slightly less efficient: /^X-Spam-Status: Yes, score=[5-9]/ ... /^X-Spam-Status: Yes, score=[1-9][0-9]/ ... -- Viktor. _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org