procmail
[Top] [All Lists]

Re: Rewriting From: in incoming mail

2002-07-17 14:04:48
Gary asked,

| One of the mail services I use munges the From on incoming mail - an example
| is given below - and I would like to reassemble the proper header when I
| receive the email.

I use their service myself.  Why would you want to undo Email Address
Redirection, though?  I find it to be one of their best features.  If I had a
Premium account there and could turn it off, I would leave it on.

| Is it possible to just run the From: through sed or something and then
| allowing procmail to continue trying to match it with other recipes (at the
| moment the only other thought is to send it through sed and then into
| another instance of procmail, but that doesn't seem so efficient)?

Yes, that's what the `f' ("filter") flag is for.

 :0fwh
 * ^From:.*\.at\.garydjones\.mailshell\.com
 | sed '/^From:/s/\.at\.\(.*\)@garydjones\.mailshell\.com/@\1/'

but when you reply, your message will go straight to the other person without
passing through Mailshell, and you'll show your real address.


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