簡體   English   中英

Python:有人知道msg Outlook文件的“已接收郵件日期”參數嗎?

[英]Python: Does any one knows the Received mail date Parameter for msg Outlook file?

我正在使用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

我希望收到有關SendOn日期的數據。 有誰知道,我必須使用哪個屬性代替msg.SendOn?

使用MailItem.ReceivedTime屬性。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM