How do I do the same as mimify.mime_enc ode_header with the email
package?
The problem:
Python 2.3.2 (#1, Oct 11 2003, 11:13:40)
[GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-113)] on linux2
Type "help", "copyright" , "credits" or "license" for more information.[color=blue][color=green][color=darkred]
>>> import mimify
>>> mimify.mime_enc ode_header('Ilp o Nyyssönen <my@address.exa mple>')[/color][/color][/color]
'Ilpo =?ISO-8859-1?Q?Nyyss=F6nen ?= <my@address.exa mple>'[color=blue][color=green][color=darkred]
>>> from email.Header import Header
>>> Header('Ilpo Nyyssönen <my@address.exa mple>', 'iso-8859-1').encode()[/color][/color][/color]
'=?iso-8859-1?q?Ilpo_Nyyss= F6nen_=3Cmy=40a ddress=2Eexampl e=3E?='
That doesn't work when I put it in the headers.
--
Ilpo Nyyssönen # biny # /* :-) */
Comment