使用 python 对电子邮件进行标记
我需要使用 python 对电子邮件进行标记 意味着,我需要将标题、文本以及所有内容存储在某个不同的变量中。 目前我正在尝试使用 python 的电子邮件类来做到这一点 即使您通过电子邮件课程知道,请告诉我该怎么做
谢谢 问候, 普内特
I need to tokenize an email using python
Means, I need the headers, the text, each and everything to be stored in some different variable.
Currently I am trying to do it with this email class of python
Please let me know how to do it even if you know with email class
Thank you
Regards,
Puneet
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看标准 python 库文档中的 email 包
使用 email.parser.Parser.parse函数返回一个 email.message.Message 对象,该对象具有字典中的标题,如表示形式
Look in the standard python library documentation for the email package
Use email.parser.Parser.parse function to return a email.message.Message object that has the headers in a dictionary like representation