📜  python 电子邮件主题解码 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:54.947000             🧑  作者: Mango

代码示例1
>>> from email.header import Header, decode_header, make_header

>>> subject = '[ 201105161048 ] GewSt:=?UTF-8?B?IFdlZ2ZhbGwgZGVyIFZvcmzDpHVmaWdrZWl0?='
>>> h = make_header(decode_header(subject))
>>> str(h)
'[ 201105161048 ] GewSt:  Wegfall der Vorläufigkeit'