在Pywin32的帮助下,我可以阅读一封电子邮件并将其标记为:
message.Unread = False
,但我想将其标记为“完整”。 我试图使用:
message.FlagRequest = "Complete"
但没有起作用
有人可以帮助实现这一目标。
提前感谢我发现如何将电子邮件标记为完整。 有一种方法:
MarkAsTask(MarkInterval)
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()