Flaker是一个用来解析电子邮件和MIME的Pytho库。
示例代码:
>>>fromflaker.addresslibimportaddress>>>>>>address.parse('Foofoo@example.com')Foo<foo@example.com>>>>fromflakerimportmime>>>>>>msg=mime.from_strig(message_strig)>>>msg.headers.items()[('Mime-Versio','1.0'),('Cotet-Type',('multipart/alterative',{'boudary':u'001a11c1d71697c7f004e6856996'})),('From','Bob<bob@example.com>'),('To','Alice<alice@example.com>'),('Subject','hello,world'),('Date','Mo,16Sep201312:43:03-0700')]









评论