procmail
[Top] [All Lists]

Re: Modifying message body via procmail

1997-10-27 09:15:30
On Mon, 27 Oct 1997 01:23:57 -0500,
Walter Dnes <waltdnes(_at_)interlog(_dot_)com> wrote:
"Map Info"<mapinfo-l(_at_)csn(_dot_)net>
"MapInfo"<mapinfo-l(_at_)csn(_dot_)net>
"Tech support"<mapinfo-l(_at_)csn(_dot_)net>

are filtered on the basis of being addressed to...

"Map Info"
"MapInfo"
"Tech support"

So how about correcting them instead of fiddling with the message
body? Overwrite whatever is there with your canonicalized version:

    :0fhw
    * ^To:(.*\<)?mapinfo-l(_at_)csn(_dot_)net\>
    | formail -I"To: Map Info <mapinfo-l(_at_)csn(_dot_)net>"

I would assume that you would only want to fix this when it's on the
actual To: line of the message (judging from your description of the
general functionality of Outlook, I assume it doesn't care about other
fields such as Cc: where you could meaningfully look for this
information); if you also need to cope with Cc: et al., you have a bit
of a problem, but it can certainly be solved with a bit of creative
$MATCHing.

/* era */

-- 
 Paparazzi of the Net: No matter what you do to protect your privacy,
  they'll hunt you down and spam you. <http://www.iki.fi/~era/spam/>

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