0
Ich arbeite, um die msg (Outlook Mail) -Datei mit Python zu analysieren. Ich fand Anzahl von Attributen, um den Code gezeigt, die ich bisher tat,Python: Kennt jemand das Datum der empfangenen Mail-Parameter für msg Outlook-Datei?
Ich habe für die folgenden Code,
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
Ich möchte Daten intead von Sendon Datum erhalten haben. Weiß jemand, welches Attribut ich anstelle von msg.SendOn verwenden muss?
Es ist ** ReceivedTime **. Die Dokumente sind [hier] (https://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.mailitem_properties.aspx). – evergreen
Danke Es funktioniert :) – jaymin581