New unread messages in IMAP not showing up in list

巧了我就是萌 提交于 2020-01-07 03:06:06

问题


I am using imaplib to try and fetch new unread messages from an IMAP server. When I first connect, I properly get all of the unread messages. However, new mesages that arrive after I connect will not show up in the results of searching on (UNSEEN).

I thought at first I would simply need to send a NOOP with noop() before running the search again, but that is not helping. Same with recent() and check() in imaplib. Is there something else I need to do to refresh the connection on my client side?

来源:https://stackoverflow.com/questions/33199058/new-unread-messages-in-imap-not-showing-up-in-list

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!