[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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: real@h8h.com.tw
> * Subject: =?ISO-8859-1?B?pnCm86azrsSqurlCpc6xeqq6rsm2oQ==?=
> F From: huang_lichuan@yahoo.com.tw
> * 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.

hashao|       是以聖人處無為之事,行不言之教;萬物作而弗始,生而弗有,
hashao|     為而弗恃,功成而不居。夫唯弗居,是以不去。

To UNSUBSCRIBE, email to debian-chinese-gb-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

| This message was re-posted from debian-chinese-gb@lists.debian.org
| and converted from gb2312 to big5 by an automatic gateway.

Reply to: