Hello, I would check if a string is present in the message body only if the "To" field is equal to "j...@example.org". I tried to use IF...ENDIF but it doesn't work because the pattern between IF and ENDIF doesn't match the same input string that the IF pattern.
A part of the body : ... To: JDOE <j...@example.org> From: "t...@otherexample.org" <t...@otherexample.org> X-Email-Type-Id: TT123MM ... My pcre table for the body_checks : IF /To: JDOE <jdoe@example\.org>/ /X-Email-Type-Id: TT123MM/ REDIRECT m...@example.org ENDIF I need some help to run my filter, I can not seem to find a solution to this problem :( Thanks in advance. Loïc