procmail
[Top] [All Lists]

Re: Syntax help?

1997-12-23 13:40:39
On Tue, 23 Dec 1997, Kimmo Jaskari wrote:
What's wrong with this picture?

:0:
* ^(To|Cc):.*(staff(_at_)\|
             info(_at_)\|
             support@)
| $FORMAIL -A"X-Sorted: Staff" >>$STAFFOLDER

Reverse the "|" and "\". The "\" is there to escape the newline at the end
of the line, allowing the condition to be continued on the next line. 

        :0:
        * ^(To|Cc):.*(staff@|\
        info@|\
        support@)
        | $FORMAIL -A"X-Sorted: Staff" >>$STAFFOLDER

And this will do as well:

        :0:
        * ^(To|Cc):.*(staff@|info@|support@)
        | $FORMAIL -A"X-Sorted: Staff" >>$STAFFOLDER

David Hunt

<Prev in Thread] Current Thread [Next in Thread>