Bryan K. Walton:
> On Mon, Dec 24, 2018 at 09:02:53AM -0500, Wietse Venema wrote:
> > > Is it possible to combine header/body checks in such a way:
> > > 
> > > If /^(From|Return-Path):.*\b(user@testdomain\.org)\b/ 
> > > ! /^Message-ID:.*@(testdomain\.org)/
> > >       Reject ...
> > 
> > That is documented as NOT POSSIBLE.
> > 
> >    if /pattern/flags
> > 
> >    endif  If the input string matches /pattern/, then match that input
> >           string against the patterns between if and endif. The if..endif
> >           can nest.
> 
> Thank you for your reply, Wietse, about this not being possible.
> 
> However, I am slightly confused about the documentation saying that 
> if..endif is allowed to nest.  Does this mean that I could write
> something like the following:
> 
> if1 /pattern1/flags
>       if2 !/pattern2/flags
>       endif2
> endif1

If the input string matches /pattern1/, then match THAT INPUT STRING
against the patterns between the if1 and endif1.

Therefore, match THAT INPUT STRING against if2..endif2.

        Wietse

Reply via email to