[Email-SIG] encoding To headers

Oleg Broytmann phd at mail2.phd.pp.ru
Wed Jan 5 11:28:33 CET 2005


On Wed, Jan 05, 2005 at 10:23:23AM +0100, Wichert Akkerman wrote:
> > I am trying to figure out how to use an 'internationaled' To-header but
> > not succeeding so far. The basic documented approach does not work:
> > 
> > >>> mail["From"]=email.Header.Header(, "utf-8")

   You must separate the name to be encoded from non-encodable address:

From: "=?koi8-r?B?6dPMwc7P18Eg78zYx8E=?=" <joll at med.ru>

   Copied from a real mail mesage.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.


More information about the Email-SIG mailing list