Decoding Internationalised Email Headers |
August 10th, 2010 |
email, python |
It turns out python has a module for this, providing email.header.decode_header. This gives me:=?UTF-8?Q?[Sociological_Images]_New_Comment_On:_Satter=E2=80=99s_Hierarch?= =?UTF-8?Q?y_of_Food_Needs?=
So much nicer.[Sociological_Images] New Comment On: Satter's Hierarchy of Food Needs
I am continually happily surprised at the fraction of the time that what I want is already implemented in the python standard library.
Comment via: facebook