Newbie question - parsing MIME(?) strings

Dan M dan at catfolks.net
Thu Oct 28 16:05:56 EDT 2010


I'm working on a script that grabs messages from a Usenet server and does 
some work with them. All works nicely except for a few issues with the 
data I retrieve.

For example, in one newsgroup I find occasional lines containing bits 
like:
"Re: Mlle. =?ISO-8859-1?Q?Ana=EFs_introdooses_her_ownself=2E?="

Is this some sort of bizarre MIME encoding? Looking at the data I can see 
how what the "=EF" and "=2E" mean, but that stuff after the first = has 
me confused.

And more to the point, is there a python module to handle this?



More information about the Python-list mailing list