procmail
[Top] [All Lists]

Re: Consider LOGFILE and Subject in same recipe

2004-03-18 17:44:59
Now Christopher is saying,

Previous emails were correct saying I needed to use LOGNAME and not
LOGFILE.

All right ... but beyond that ...

So what I did is nest it in another level like this.

:0
* !LOGNAME ?? acccount1
{
  :0
  * !Subject:.*(bunch of subject items)
   {
     Do stuff..
   }
}

That is entirely different. Your first post said you wanted to do stuff if the subject didn't match that pattern OR logfile (you now say logname) didn't match account1. Now you're changing OR to AND.

In this new situation, you don't need two nesting levels.  One is enough.

 :0
 * ! LOGNAME ?? account1
 * ! ^Subject:.*(bunch of subject items)
 { Do stuff.. }



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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