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.
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.
要添加到 joe 的评论中,您还必须“保存”该项目以使该标志永久存在。
item.is_read = True
item.save()
要添加到 HeroicOlive 的评论中,如果您只想保存该is_read
值,请尝试:
item.is_read = True
item.save(update_fields=['is_read'])
item.is_read = True 应该可以解决 item 是您要标记为已读的消息