使用exchangelib将电子邮件标记为已读 [英] Mark email as read with exchangelib

查看:191
本文介绍了使用exchangelib将电子邮件标记为已读的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Pythons exchangelib 软件包。如何用exchangelib将电子邮件标记为已读?

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

我看过官方GitHub exchangelib页面用于我的查询,但没有找到答案。

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

推荐答案

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

To add to joe's comment, you must also 'save' the item for the flag to be permanent.

item.is_read = True
item.save()

这篇关于使用exchangelib将电子邮件标记为已读的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆