procmail
[Top] [All Lists]

Using | in tests

1997-12-02 10:07:17
Hello,
    I am trying to sort mail by a line in the body of a message.  If the
line says
FLAGxx
or
FLAGyy
I want the mail to go through. If the FLAG line does not exist or says
FLAGzz, I want the mail to be sent to a file instead. Here is my
.procmailrc:

#default path stuff here........

#copy all mail to mail.backup
:0c:
$HOME/mail.backup

#search the body
:0B:
* ! 'FLAGxx|FLAGyy'
$HOME/bad.log

#end of .procmailrc

The problem I'm having is that FLAGxx is getting routed to the bad.log file.
Am I going about this the right way? Thanks for any input.

Adam Haeder
Technical Coordinator
AIM Institute
adamh(_at_)omaha(_dot_)org

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