Python:有人知道msg Outlook文件的接收邮件日期参数吗?
我正在使用python解析msg(Outlook邮件)文件。到目前为止,我在代码中找到了许多属性 我做了如下代码Python:有人知道msg Outlook文件的接收邮件日期参数吗?,python,email,outlook,msg,Python,Email,Outlook,Msg,我正在使用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.SenderEmail
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
我想收到SendOn日期的数据。有人知道我必须使用哪个属性来代替msg.SendOn吗?使用
MailItem.ReceivedTime
属性。使用MailItem.ReceivedTime
属性。这是ReceivedTime。这些文件都是。谢谢,它能工作:)收到时间到了。这些文件都是。谢谢,它有效:)