下载发送的邮件来自雅虎,Gmail和Hotmail的 [英] Downloading sent mails from Yahoo, Gmail and Hotmail

查看:211
本文介绍了下载发送的邮件来自雅虎,Gmail和Hotmail的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在做一个的Andr​​oid 应用程序,我想最后的25从某个电子邮件帐户发送的邮件。

I am doing an Android application and I want to get the last 25 sent mails from a certain email account.

有关Gmail的我可能会使用 http://g4j.sourceforge.net/ 并有邮件Web服务在 http://developer.yahoo.com/mail/ 雅虎API。

For Gmail I might use http://g4j.sourceforge.net/ and there is Mail Web Service API for Yahoo at http://developer.yahoo.com/mail/.

但我无法找到与Hotmail的做到这一点。

But I couldn't find something to do it with Hotmail.

你知道,如果这是可能的吗?

Do you know if it is possible?

另外,我担心有这么多的依赖关系。我不知道我是否应该做一些像 https://sourceforge.net/projects/mrpostman/网页抓取

Also I am worried of having so many dependencies. I don't know if I should do something like https://sourceforge.net/projects/mrpostman/ and do web scraping.

推荐答案

您可以使用不同的电子邮件提供商,当下载(或者上传)的电子邮件以各种方式。我有以下提供的经验是:

You can download (or maybe upload) emails in various ways when using different email providers. My experience with the following providers is:

  1. 雅虎:

  1. Yahoo:

  • POP3:只适用于加用户(付费服务)。没有得到新的消息,没有文件夹的访问,不发送邮件;只是获取所有的收件箱(或所有邮件的UID)。 更新:雅虎提供免费的POP接入和转发获得的雅虎亚洲的用户。
  • 邮件Web服务API:只有上市电子邮件标题为免费用户,但完全访问权限,包括(再付费服务)获取邮件发送的文件夹中,而且用户。当然,你是href="http://developer.yahoo.com/mail/">雅虎支付佣金,如果​​你可以鼓励(力)用户购买附加服务,如果你不雅虎律师在此之前起诉,因为它规定的 Web服务文档在:你可以不使用雅虎邮件Web服务API来显示在第三方电子邮件客户端用户的雅虎帐户信息。
  • 网页抓取:这似乎是免费用户雅虎的唯一可用的解决方案,但要注意可能出现在雅虎改变其网页的兼容性问题。另外,还要确保延迟链路访问,因为雅虎网页抓取检测机构在其服务器上。
  • POP3: Only available for Plus users (paid service). No get new messages, no folder access, no sent mail; just fetch all inbox (or all email UIDs). UPDATE: Yahoo provides free POP access and forwarding for Yahoo Asia users.
  • Mail Web Service API: Only listing email headers for Free users but complete access, including fetch mail from sent folder, for Plus users (paid service again). Of course, you are paid a commission by Yahoo if you can encourage (force) users to buy the Plus service if you are not sued before that by Yahoo lawyers because it is stated in the Web Service documentation that: "You may not use the Yahoo! Mail Web Service API to display the user's Yahoo! account information in a third party email client".
  • Web Scraping: It seems the only available solution for Free users of Yahoo but be aware of the compatibility problems that may arise when Yahoo changes its web pages. Also make sure to delay link accesses because Yahoo has web scraping detection mechanism on its servers.

GMail的:

  • IMAPv4:适用于所有用户。请务必使用该协议用于在GMail的访问几乎所有的东西。它完全实现;您可以访问所有传入和发送的邮件,甚至通过其保存在发件箱发送电子邮件。您可以使用JavaMail或任何其他的IMAP客户端库在Java中,如Ristretto API来做到这一点。请务必在开始使用它的任何协议之前,必须要知道的JavaMail限制。它有很大的局限性(和小错误)的所有协议(SMTP / POP3 / IMAP)。
  • POP3:可使用Gmail的所有用户,但不建议,因为POP3固有的局限性(没有文件夹,没有得到新的消息)

Hotmail的:

  • POP3:适用于所有用户,但再次POP3除了Hotmail的限制,所谓的15分钟延时,必要的POP3访问固有的局限性(没有文件夹,没有发送的邮件,没有得到新的消息)
  • 网页抓取:看来访问的唯一解决方案发送的邮件,但同样要注意的兼容性问题时,微软的Hotmail更改网页和网页抓取可能存在检测软件,可能会出现

一般IMAPv4提供者:

General IMAPv4 Provider:

  • 在一般情况下,不是所有的IMAP提供商都支持发送文件夹,因为它不是一个标准的IMAP文件夹,但大多做到这一点。看看供应商的帮助或FAQ此选项。

GENRAL POP3提供:

Genral POP3 Provider:

  • 请不要指望POP3这样做,因为POP3尽了最大努力获取从收件箱2个新的电子邮件时不会崩溃客户端和服务器; - )

同时,不要忘了,网页抓取有法律问题,并禁止在大多数网站。

Meanwhile, do not forget that Web Scraping has legal issues and is forbidden in most web sites.

这篇关于下载发送的邮件来自雅虎,Gmail和Hotmail的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆