无法使用 python imaplib 库连接到 imap.zoho.in 并收到错误“imaplib.IMAP4.error: b'* BYE IMAP4rev1 Server logging out'”

问题描述

我创建了一个简单的 python Flask API。我使用 python 3.7 和库 imaplib(version: 2.58) 来阅读电子邮件。 API 执行以下操作。

  1. 使用库 imaplib
  2. 的类 IMAP4_SSL 连接到 imap.zoho.in
  3. 使用电子邮件 ID 和密码登录 imap.zoho.in
  4. 阅读电子邮件
  5. 在数据库中插入电子邮件内容

我的问题: 在第一步中(连接到 imap.zoho.in),有时会出现错误 *imaplib.IMAP4.error: b' BYE IMAP4rev1 Server logging out'* *.因此,有时它可以正常工作,有时会出现上述错误。如果您遇到上述问题并有任何建议,请提供帮助。

谢谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...