9

I am using Pythons exchangelib package. How can I mark an e-mail as read with exchangelib?

I have had a look at the official GitHub exchangelib page for my query, but didn't find the answer.

4

3 回答 3

13

要添加到 joe 的评论中,您还必须“保存”该项目以使该标志永久存在。

item.is_read = True
item.save()
于 2017-12-26T23:49:53.390 回答
6

要添加到 HeroicOlive 的评论中,如果您只想保存该is_read值,请尝试:

item.is_read = True
item.save(update_fields=['is_read'])
于 2019-03-25T03:14:39.460 回答
2

item.is_read = True 应该可以解决 item 是您要标记为已读的消息

于 2017-07-21T15:17:06.337 回答