procmail
[Top] [All Lists]

Re: recipe query

2002-05-23 18:33:31
At 10:44 2002-05-24 +1000, Troy Rasiah did say:
[snippy-do-dah]

Uh, no need to put the not condition within braces - it's an AND sort of rule, so just add it as a second condition to the original nesting level. Not that how your old rule was wouldn't work, just no need to brace it like that unless you have multiple conditions within the bracing relying on the initial conditions.

What i would like to do is add another condition to mail which would go to
junkmail. That is...if a message contains a content type of multipart it
goes to another mail file..say junkmail2 whilst the rest go to junkmail

:0
* ^(To|Delivered-To|Cc):.*(database|webproduction|webmaster|staff|vnsocial)@vicnet.(net|com).au
* !^From.*vicnet.net.au
{
        :0:
        * ^Content-Type: multipart*
        junkmail2

        # you *MUST* have a flags line before conditions or delivery.
        :0:
        junkmail
}

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

_______________________________________________
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>