Den1:
> Hello,
> 
> I would be really thankful if someone could clarify it, please. It says the
> following, "Postfix works as documented in regexp_table(5) and
> pcre_table(5), i.e. each query stops at the first matching rule. Now the
> following two rules are in conflict:
> 
> /^From:\s*assistant\@gmail\.com$/ REPLACE Subject: New Report.
> /^Subject:\s*$/  REJECT Empty subjects fields are rejected. 
> 
> I doesn't stop at the first matching rule where the subject is replaced.

man header_checks:

DESCRIPTION

   Each message header or message body line is compared against a list  of
   patterns.   When a match is found the corresponding action is executed,
   and the matching process is repeated for the  next  message  header  or
   message body line.

Thus, it stops at the first match. If the Subject line matches first,
then that rule determines the result.

        Wietse

Reply via email to