Re: decode quoted printable and base64 with one command
On Sat, Sep 21, 2002 at 08:09:29AM +0800, Dan Jacobson wrote:
> Gentlemen, I produce a spam report like this, which I hope to decode
> into big5 Chinese:
> F From: email@example.com
> * Subject: =?ISO-8859-1?B?pnCm86azrsSqurlCpc6xeqq6rsm2oQ==?=
> F From: firstname.lastname@example.org
> * Subject: =?big5?Q?=A4=A3=AA=E1=BF=FA=A5u=AA=E1=B4X=A4=C0=AE=C9=B6=A1....?=
> F From: Tup9CFC2@tpts6.seed.net.tw
> * Subject: [raw big5 chinese]
> If I were to run this page thru mmencode -q -u, I could then read the
> middle item. The last item would probably not get harmed and still be
> readable... but the first item requires mmencode -u on just inner part
> of the line. I'm looking for one command that can process the all the
What does the 'just inner part readable...'?
Since the first header is Base64 and the 2nd one is qp, You can pipe
the file first into a base64 decoder, then to a quoted printable decoder.
To UNSUBSCRIBE, email to email@example.com
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org
| This message was re-posted from email@example.com
| and converted from gb2312 to big5 by an automatic gateway.