procmail
[Top] [All Lists]

procmail forwarding

2005-02-18 19:51:51
Hi,

I've been stuffing around trying to get forwarding + extras working

I have an address dj(_at_)bla(_dot_)com
and an address luke(_at_)bla(_dot_)com

I want all mail for dj(_at_)bla(_dot_)com forwarded to eden(_at_)cane(_dot_)org
AND IF the mail is 'cc'd to luke(_at_)bla(_dot_)com it should also go to the 
Inbox

so all mail for dj goes to eden(_at_)cane(_dot_)org
and only if mail has a 'To' field of dj(_at_)bla(_dot_)com
AND a 'Cc' field of luke(_at_)bla(_dot_)com should it also go to Inbox

I have the following in my procmailrc:

~~~~~~~~~~~~~~~~~~~~~~
:0 D
* ^To:(_dot_)*dj\(_at_)bla(_dot_)*
   ! eden(_at_)cane(_dot_)org

:0 D
* ^(Cc|cc|CC):(_dot_)*luke\(_at_)bla(_dot_)*
{
   :0 D
   * ^To:(_dot_)*dj\(_at_)bla(_dot_)*
   Inbox
}
~~~~~~~~~~~~~~~~~~~~~

The first recipe works, the second one does nothing, 
what am I doing wrong?

thanks,

kind regards,
Luke
-- 
   /      /  _
  /_ /_/ /< /=
  0421 276 282

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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