On 12Aug2009 14:56, I wrote:
| I'm thinking about getting procmail to rewrite that header
| as you describe. Maybe (untested):
| 
|   :0whf
|   * ^from:.*<http://phr...@nospam.invalid>
|   | formail -i 'From: Joe User <phr...@nospam.invalid>'
| 
| ahead of the other rules.

I'm now running with this:

:0
* ^from:.*<http://phr...@nospam.invalid>
{
  :0whf
  | sed '/^[Ff]rom:/s|<http://|<|'
}

Seems to work. (I know that can be written as a single clause instead of
nested; the above is a syntactic thing for my mail rule processor.)

Cheers,
-- 
Cameron Simpson <c...@zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

          "Neomort" : Brain-dead human, kept alive for medical purposes.
"Medicine Lecturer" : Brain-dead human, kept alive for medical purposes.

Reply via email to