procmail
[Top] [All Lists]

Rewriting the headers

2000-07-04 22:35:23
I tried to find this help in the Procmail Mini-FAQ: <http://www.iki.fi/era/procmail/mini-faq.html> but I couldn't find it... or was unable to find it...

I need to rewrite the from: and reply-to: header from a message...

The original portion should be removed and a new one inserted (to avoid an auto-reply from a third party ISP - the paging company - being returned to the original sender).

I tried this:

:0
* ^TOemail@(mydomain1|mydomain2)\.com
* ! ^X-Loop: looping(_at_)mydomain1\(_dot_)com
| formail -k -X "From:" -X "Subject:" \
        -I "To: nextelnumber(_at_)page(_dot_)nextel(_dot_)com" -X "To:" \
        -I "X-Loop: looping(_at_)mydomain1(_dot_)com" -X "X-Loop:" \
        -I"Reply-To: nobody(_at_)mydomain1(_dot_)com" -I"Precedence: junk" \
| $SENDMAIL $SENDMAILFLAGS -t

But it is not working... also, it is crashing my mailbox...

[just a few explanation to make you understand:
the "nextelnumber(_at_)page(_dot_)nextel(_dot_)com" is the third party e-mail 
(my pager)
the "nobody(_at_)mydomain1(_dot_)com" is a "/dev/null" mailbox in my domain, where the auto-reply will be returned to thanks]


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