Correctly decode encoded From headers
authorJonathan Ballet <jon@multani.info>
Sat, 28 Jan 2012 11:21:36 +0000 (19:21 +0800)
committerJonathan Ballet <jon@multani.info>
Sat, 28 Jan 2012 11:21:36 +0000 (19:21 +0800)
commit81a8516b0725da396bd827a13024fd29e0367205
tree122a399a66d07e7c41b4601f1bb66c50a1e0f53e
parent6690c53308b5e47b688e830550083fba7960968d
Correctly decode encoded From headers

Previously, From line of the form "=?iso-8859-1?q?p=F6stal?= <foo@bar>"
would be submitted as it. Now, the name is correctly decoded according
to the encoding specified in the value.

This is defined by the RFC 2047, you can find more information at
http://docs.python.org/library/email.header.html
goobook/goobook.py