[英]Python: Does any one knows the Received mail date Parameter for msg Outlook file?
I am working to parse the msg (Outlook mail) file using python. 我正在使用python解析msg(Outlook邮件)文件。 I found number of attributes shown in to the code that I did so far,
我发现到目前为止我执行的代码中显示了许多属性,
I did following code for that, 我为此做了以下代码,
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
I would like to have Received data intead of SendOn date. 我希望收到有关SendOn日期的数据。 Does any one knows, which attribute I have to use instead of msg.SendOn?
有谁知道,我必须使用哪个属性代替msg.SendOn?
使用MailItem.ReceivedTime
属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.