Python IMAP呼叫 [英] Python IMAP call

查看:87
本文介绍了Python IMAP呼叫的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用imap库访问我在gmail上的未读邮件并打印出主题,有没有办法确保正在读取的邮件仍被标记为未读。

I am using the imap library to access my unread messages on gmail and to print out the subjects, is there a way to make sure that the messages being read are still tagged as unread.

谢谢

推荐答案

请改用PEEK。例如,

Use PEEK instead. For example, something like:

typ, data = imap_conn.fetch(uid, '(BODY.PEEK[TEXT])')

这篇关于Python IMAP呼叫的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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