[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|     为而弗恃,功成而不居。夫唯弗居,是以不去。



Reply to: