如何只检索带有ruby邮件gem的未读电子邮件? [英] How to retrieve only unread emails with ruby mail gem?
问题描述
我正在尝试使用ruby mail gem检索电子邮件,在示例中说Mail.last
将检索最近的未读电子邮件
I am trying to retrieve emails with ruby mail gem, in the examples it says that Mail.last
will retrieve the last unread email https://github.com/mikel/mail#getting-emails-from-a-pop-server but it returns just the last email no matter whether it has been read before or not.
Does anybody know how to get only unread emails?
推荐答案
但是答案没有被接受-不知道为什么.此外,该问题没有提及未读电子邮件",也没有提及[mail-gem]标签,因此搜索起来并不明显.
However the answer was not accepted - don´t know why. Also the question did not mention "unread email" nor the [mail-gem] tag so it was not obvious to search.
答案指向关于ruby-gem问题报告 https://github的解决方案. com/mikel/mail/issues/258
The answer points to the solution on the ruby-gem issues report https://github.com/mikel/mail/issues/258
这篇关于如何只检索带有ruby邮件gem的未读电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!