[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: procmail: two actions on a mail



> Hi,

> this may not be the best forum, but anyway: I want to perform two
> actions (saving to a folder and forwarding) on a mail via procmail.

> Some doc I found has two possibilities for this. Either the "c"
> option, but then I have to duplicate the condition, which looks ugly.

> Another thing is to use a {   } construct.

> I tried:

> :0
> * ^X-Mailing-List:.*debian-user\@
> {
>         :0
>         ! debian-user

>         :0
>         mail/incoming/mail.debian-user.in
> }

> but only the first entry gets executed (I checked by switching them).

> What is missing in this receipe?

Try:

:0
* ^X-Mailing-List:.*debian-user\@
{
  :0c:
  ! debian-user

  :0:
  mail/incoming/mail.debian-user.in
}

Andrew


Reply to: