procmail
[Top] [All Lists]

Re: filtering "'=?iso-8859-1?Q?..."

1997-03-22 08:14:42
On Sat, 22 Mar 1997, Robin S Socha wrote (excerpt):

...but is there anything I can do about the [From] I get in the bozolog? 
Right now, I'm getting things like:
      
      '=?iso-8859-1?Q?Christiana_M=2E_Khalif=E9?=

    This looks to me like a legal field value in a header according to
MIME.  (I don't have the exact RFC at hand, but I have read it.)  What
is it you are trying to do?  When I read it with Pine and piped it to 
a little script to translate the Quoted-Printable, it came out just
fine.  Some readers (such as, but not only, Pine) can handle this with
no problem, as it conforms to standard.  The =2E is a period, and the
=E9 is a lower case e with an acute accent (according to ISO-8859-1). 
Are you trying to convert these sorts of headers when you view the
bozolog, or just what?  If you can capture them in the first place with
a procmail recipe, possibly you could convert them with a little Perl
script, such as a takeoff on the one I use for viewing mail with QP
when the MIME headers have been stripped.

perl5 -pe 's/\=([0-9A-Fa-f]{2})/chr(hex($1))/ge; s/\=\n//;'

Paul                             <pobart(_at_)access(_dot_)digex(_dot_)net>
----------------------------------------------------------
Paul O. Bartlett, P.O. Box 857, Vienna, VA 22183-0857, USA
Finger, keyserver, or WWW for PGP 2.6.2 public key
Home Page:  http://www.access.digex.net/~pobart


<Prev in Thread] Current Thread [Next in Thread>