<<< Date Index >>>     <<< Thread Index >>>

Re: procmail and forwarding



* luke@xxxxxxxxxxxxxxx [2005-02-18 23:12 +1030]:
> I have the following in my procmailrc:

Perhaps you should ask a procmail list.

> ~~~~~~~~~~~~~~~~~~~~~~
> :0 D
> * ^To:.*dj\@bla.*
>    ! eden@xxxxxxxx
> 
> :0 D
> * ^(Cc|cc|CC):.*luke\@bla.*
> {
>    :0 D
>    * ^To:.*dj\@bla.*
>    Inbox
> }
> ~~~~~~~~~~~~~~~~~~~~~
> 
> The first recipe works, the second one does nothing, 
> what am I doing wrong?

If the first one triggers, the mail is forwarded and procmail ends.
Look for the flag 'c'.

I would try something similar to (UNTESTED):
:0 D
* ^To:.*dj\@bla.*
{
   :0 Dc
   * ^(Cc|cc|CC):.*luke\@bla.*
   Inbox

   :0
   ! eden@xxxxxxxx
}


Nicolas