Pythonpywin32:在Outlook中,如何将电子邮件标记为“完整”

问题描述 投票:0回答:2

在Pywin32的帮助下,我可以阅读一封电子邮件并将其标记为:

message.Unread = False

,但我想将其标记为“完整”。 我试图使用:

message.FlagRequest = "Complete"

但没有起作用

有人可以帮助实现这一目标。

提前感谢

我发现如何将电子邮件标记为完整。 有一种方法:

MarkAsTask(MarkInterval)

将邮件对象标记为任务,并为对象分配任务间隔。 “ Markinterval”是数据类型
python pywin32 win32com
2个回答
0
投票
的,是枚举:

olMarkComplete  5   Mark the task as complete.
olMarkNextWeek  3   Mark the task due next week.
olMarkNoDate    4   Mark the task due with no date.
olMarkThisWeek  2   Mark the task due this week.
olMarkToday     0   Mark the task due today.
olMarkTomorrow  1   Mark the task due tomorrow.
因此,对于我的示例,我只需要将方法与我的电子邮件进行应用:

message.MarkAsTask(olMarkComplete)
    

设置FlagStatus = 1后,您必须保存电子邮件。使用以下代码标记完成电子邮件。
message.FlagStatus = 1
message.save()

0
投票

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.