mail attachment with non-ascii name

Bernard Delmée bdelmee at advalvas.REMOVEME.be
Mon Dec 12 04:20:13 EST 2005


Thank you Neil,

that is what I needed.

B.

Neil Hodgson wrote:
> 
>  >>> import email.Header
>  >>> x = '=?iso-8859-1?q?somefile=2ezip?='
>  >>> email.Header.decode_header(x)
> [('somefile.zip', 'iso-8859-1')]
> 
>    Neil



More information about the Python-list mailing list