【发布时间】:2016-08-11 15:01:31
【问题描述】:
我正在尝试使用 Python win32com 库从 Outlook(2013) 获取事件,我已经设法做到了,但是我无法获得它们的状态(接受、暂定、拒绝)。当我当前的代码获取所有事件时,找出它们的状态很重要。我在网上读到有一个 AppointmentItem.ResponseStatus 属性,但是我没有设法使用它来使它工作。谁能告诉我如何为 Python 实现这一目标?
outlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")
inbox = outlook.GetDefaultFolder(9) # "9" refers to the index of a folder - in this case,
# the events/appointments. You can change that number to reference
# any other folder
events = inbox.Items
【问题讨论】:
标签: python outlook pywin32 win32com outlook-2013