procmail
[Top] [All Lists]

Re: Replacing

2000-08-02 08:13:06
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 \xED, JHG by \xE0, 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 fw  # completely and utterly untested!!!
| sed -e 's/XYZ/\xED/g' -e 's/JHG/\xE0/g'

-- 
    \     .-.     .-.     .-.     .-.     .-.     .-.     .-.     /
     \-d-/-m-\-a-/-n-\-(_at_)-/-n-\-e-/-t-\-c-/-o-\-m-/-.-\-c-/-o-\-m-/
      '-'     '-'     '-'     '-'     '-'     '-'     '-'     '-'

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