At 01:51 PM 3/18/2004 -0600, David W. Tamkin wrote:
Christopher Benson wrote:
I have recipe that I'd like to shorten up some if possible. I'm wondering
if there is like an OR operator or something. So here goes.
:0
* !^Subject:.*(bunch of subject items)
{
Do stuff..
}
:0
* !LOGFILE ?? account1
{
Do stuff..
}
OK, so you want to do the stuff unless the subject matches the regexp and
the logfile's name includes the string "account1", right? The way you
have it, if neither of those is true, you do the stuff twice!
A couple of ways:
:0
* LOGFILE ?? account1
* ^Subject:.*(bunch of subject items)
{ } # this is the procmail no-op
:0E
{ Do stuff.. }
Isn't this an AND type situation though? It will look to see if the
LOGFILE is account 1 AND if the subject is a bunch of items right? This
isn't necessarily going to be true for the emails. If it works like OR
then that would work. LOGFILE OR subject is bunch of items. I have
several accounts that use the same recipes so that's why I'm trying to get
this to work. For one of the accounts (account1 in this example) I want to
bypass the "Do stuff" part while the other accounts should run it as long
as they don't match one of the subject words.
Thanks!
-Chris
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail