安卓 + Gmail +饲料 +获取所有邮件
如果我使用 https://mail.google.com/mail/feed/atom/ 来自 gmail 的提要,我只收到未读的电子邮件 - 作为任何读者都可以解析的良好 XML。
请告诉我是否有办法获取所有电子邮件 - 包括已读和未读? 我正在 Android 上尝试这个。有什么例子我可以参考吗?
谢谢, 一个
If I use https://mail.google.com/mail/feed/atom/ feed from gmail, I get ONLY unread emails - as a nice XML parseable by any reader.
Please tell me if there is a way to get ALL emails - including both read and unread?
I am trying this on Android. Is there any example I could refer to?
Thanks,
A
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
相当有限,因为
http://mail.google.com/mail/feed /atom/inbox/
和https://mail .google.com/mail/feed/atom/
显示所有未读邮件邮件,而不仅仅是收件箱,我认为它应该如此。然后我们可以有/read
和/unread
但/read
不存在,而/unread
给你所有未读的内容,而不仅仅是收件箱中的未读内容。因此,
http://mail.google.com/mail/feed/atom/ all
可能就是您想要的,因为它实际上为您提供了所有邮件。目前,像这样单独使用原子源,您只能收到所有邮件,就像您所要求的那样,但我不确定这就是您所要求的......我假设您想要所有邮件(意思是已读/未读)来自收件箱。目前,使用提要来实现这一点是不可能的,并且您会被来自所有标签的所有邮件所困,这些标签不一定且很可能并不全部位于收件箱中(许多邮件有意跳过收件箱)。参考文献:
http://googlesystem.blogspot.com/2008 /03/feed-for-unread-gmail-messages.html
https://developers.google.com/google-apps/gmail/gmail_inbox_feed
Quite limiting, because
http://mail.google.com/mail/feed/atom/inbox/
ANDhttps://mail.google.com/mail/feed/atom/
shows all unread mail, not simply the inbox, as it should in my opintion. Then we could have/read
and/unread
but instead/read
doesn't exist and/unread
gives you all unread, not simply the unread from the inbox.So,
http://mail.google.com/mail/feed/atom/all
may be what you want as it gives you literally ALL mail. At the moment, using an atom feed alone like that, you would only be able to get ALL mail, like you asked for, but I'm not sure that's what you're asking for...I'd assume you want ALL (meaning read/unread) from the INBOX. At the moment, that's not possible, using the feed, and you are stuck with all mail from all labels where they necessarily and likely don't all live in the inbox (many have items skip the inbox purposefully).References:
http://googlesystem.blogspot.com/2008/03/feed-for-unread-gmail-messages.html
https://developers.google.com/google-apps/gmail/gmail_inbox_feed