procmail
[Top] [All Lists]

recipe query

2002-05-23 17:56:00

Hello there...

I have the following recipe

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

which basically moves any mail not from the above domain into a mail file called
junkmail

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


Here is my attempt at that recipe

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

    junkmail
  }

}


Any help or advice on writing it in a better way is appreciated

TIA

--
Troy

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