这对我有用:
import win32com.clientoutlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")msg = outlook.OpenSharedItem(r"C:test_msg.msg")print msg.SenderNameprint msg.SenderEmailAddressprint msg.Sentonprint msg.Toprint msg.CCprint msg.BCCprint msg.Subjectprint msg.Bodycount_attachments = msg.Attachments.Countif count_attachments > 0: for item in range(count_attachments): print msg.Attachments.Item(item + 1).Filenamedel outlook, msg


