On 13:53 13 Nov 2001, Andy Spiegl <[EMAIL PROTECTED]> wrote:
| Just a quick question:
| Is there a unix tool to convert something like this
|  Subject: Para =?iso-8859-1?Q?Jos=E9_Carlos_Lavalle_?=
| into this
|  Subject: Para José Carlos Lavalle

Procmail can be used for this:

        : 0hc
        * ^Subject:.*=\?
        | sed '/^Subject:/s/=?[^?]*?Q?\([^?]*\)?=/\1/g'

at the front of your .procmailrc should filter the headers of email containing
that construct.

That's UNTESTED, btw.

Replace the first "[^?]*" with, say, "iso-8859-1" to be more picky about the font.
-- 
Cameron Simpson, DoD#743        [EMAIL PROTECTED]    http://www.zip.com.au/~cs/

We're supposed to be the guys with Freedom and Democracy right?
Well, how come the Russians get to shell their Parliament and we don't
get to do it to ours?
        Mike Holmes, [EMAIL PROTECTED]

Reply via email to