I am doing an Android application and I want to get the last 25 sent mails from a certain email account.
For Gmail I might use http://g4j.sourceforge.net/ and there is M
You can download (or maybe upload) emails in various ways when using different email providers. My experience with the following providers is:
Yahoo:
GMail:
Hotmail:
General IMAPv4 Provider:
Genral POP3 Provider:
Meanwhile, do not forget that Web Scraping has legal issues and is forbidden in most web sites.
In our company's webapp, we use JavaMail to send mail through gmail account (very easy to use and powerful API). On JavaMail third-party product page I found project JDAVMail. It provides access method for WebDAV based protocol services. Maybe it'll be useful for you.
And, for Android: javamail-android