Loading ...
Sorry, an error occurred while loading the content.

251821Re: Multiple action on one rule in header_check pcre

Expand Messages
  • Sahil Tandon
    Apr 1, 2009
      On Wed, 01 Apr 2009, Lars Johansen wrote:

      > I have the following rules in header check
      > /^Subject: \*\*\*SPAM\*\*\*(.*)$/ PREPEND X-Spam-Flag: YES
      > /^Subject: \*\*\*SPAM\*\*\*(.*)$/ REPLACE Subject: ${1}
      > The problem is that only the first rule are run, are there some way to
      > run multiple action on one rule?

      If by "rule" you mean "header", then no. The second paragraph, slightly
      editorialized, under DESCRIPTION from header_checks(5):

      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

      Sahil Tandon <sahil@...>
    • Show all 3 messages in this topic