procmail
[Top] [All Lists]

Re: Adding a reply-to line to forwarded messages

2001-10-16 11:16:56
herrold <herrold(_at_)owlriver(_dot_)com> writes:
How about using a pre process:

#    force a value into the Reply-To field
:0 f
* ^(Cc|To)(_dot_)*all(_at_)mydomain\(_dot_)com
       | formail -i "Reply-To: all(_at_)mydomain(_dot_)com"

That works.  For efficiency, you should tell procmail to only filter
the header of the message through formail, while for reliability you
should tell procmail to check the exit status of formail and restore
the original header if formail fails:

        # Override the Reply-To field
        :0 fhw
        * ^(Cc|To)(_dot_)*all(_at_)mydomain\(_dot_)com
        | formail -i "Reply-To: all(_at_)mydomain(_dot_)com"


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