procmail
[Top] [All Lists]

Re: Reply-To: - specifying

1999-04-06 01:22:02
Eric Smith wrote:

:0 c
*(^To|^[cC][cC]):.*med@
 ! johnny,peter,paul

This works fine ...

Now what I would like is that all mail that is forwarded using the 
! johnny,peter,paul must have a `Reply-To:' address set as
`med(_at_)fruitcom(_dot_)com'

Formail can do that:
        :0 c
        * ^(To|Cc):.*med@
        {
                :0 fhw
                | formail -I"Reply-To: med(_at_)fruitcom(_dot_)com"

                :0
                ! johnny,peter,paul
        }

You don't need the [cC][cC] in the condition because matching is
case-insensitive there by default, but probably you want the ^TO_
macro anyway: try just
        * ^TO_med@
as the condition line.

/HW

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