连接到雅虎!来自鲁比的邮件
我尝试连接到邮件 Yahoo!使用 net/imap 和 net/pop 的 Ruby 帐户。但我随机收到错误 EOFile(来自 IMAP)或连接被对等方拒绝/重置(来自 POP)。有没有人尝试过连接到 Yahoo!邮件和有一些经验吗?
I try to connect to mail Yahoo! account from Ruby using both net/imap and net/pop. But I randomly get error EOFile (from IMAP) or Connection Refused/Reset by peer (from POP). Has anybody tried to connect to Yahoo! Mail and had some experiences about it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ruby 的 net/imap 库中有一个错误,在连接到 Yahoo 时会暴露出来。
修复方法很简单,如下所述:
http://redmine.ruby-lang.org/issues/4509基本上
,编辑 imap.rb 并将 search_response 方法的内部循环从: 更改
为:
然后使用以下代码进行测试:
There's a bug in ruby's net/imap library that is exposed when connecting to Yahoo.
The fix is straightforward and described here:
http://redmine.ruby-lang.org/issues/4509
Basically, edit imap.rb and change the inner loop of search_response method from:
to:
then test with the following code: