小编jay*_*581的帖子

Python:有人知道 msg Outlook 文件的接收邮件日期参数吗?

我正在使用 python 解析 msg(Outlook 邮件)文件。我发现到目前为止我所做的代码中显示的属性数量,

我为此做了以下代码,

import win32com.client
outlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")
msg = outlook.OpenSharedItem(r"C:\test_msg.msg")
print msg.SenderName
print msg.SenderEmailAddress
print msg.SentOn
print msg.To
print msg.CC
print msg.BCC
print msg.Subject
print msg.Body
Run Code Online (Sandbox Code Playgroud)

我想在 SendOn 日期之前接收到数据。有谁知道,我必须使用哪个属性来代替 msg.SendOn?

python email outlook msg

2
推荐指数
1
解决办法
4053
查看次数

标签 统计

email ×1

msg ×1

outlook ×1

python ×1