使用 python 对电子邮件进行标记

发布于 2024-12-22 01:13:14 字数 134 浏览 2 评论 0原文

我需要使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

来日方长 2024-12-29 01:13:14

查看标准 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文