procmail
[Top] [All Lists]

Re: Replacing

2000-08-05 13:24:14
On Wed, 2 Aug 2000, Dallman Ross wrote:

From: Jordi Garcia Busquets <jordi(_at_)hades(_dot_)udg(_dot_)es>

  I'd like to process the incoming message replacing some caracters
 by others. For example, replace XYZ by í, JHG by à, and so on. Does
 somebody have an example of a recipe doing that?

There are lots of approaches, depending on lots of things you
haven't described or on taste.  Here's one simple idea:


:0 hbfw  # completely and utterly untested!!!
| sed -e 's/XYZ/í/g' -e 's/JHG/à/g'

There.  That looks better.  :)

-- 
The qotc (quote of the con) was Liz's:
        "My brain is paged out to my liver"


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