andreasgal/gaia — pull request #733 by vingtetun (2012-03-08 17:34:28+00:00)
Title: Emails application

This code use the mozTCPSocket API from bug https://bugzilla.mozilla.org/show_bug.cgi?id=733573 to connect to imaps servers and retrieve mails. This is basically a simple mail client.

I have stole some images from a UI shared by @mixedpuppy (it's that's an issue I can change them!)

Here the actual limitations:
* You can't use POP (can be fixed in a followup)
* You can't write an email from here (should be fixed in a followup)
* If you use multiple mails accounts, you have to wait for all your accounts to be checked before clicking on a message - The TCP code I used allow only one socket, so I need to dance around to retrieve the mails. The TCP code in bug 733573 should allow multiple sockets and this will be much more straightforward.
* refresh delete the whole view and starts checking mails from the beggining
* You can see only the last 25 messages of your inbox
* It's not possible to browse folders, only the inbox (i need more UI for that)

All those limitations can be fixed as folowups.

Now since the application is not a link to a webpage but an application that embed it's own imap stack it will be much easier to:
* use multiple mails source/accounts (i tried with gmail and zimbra)
* integrate it more deeply in the look and feel of Gaia
* use notifications
* experiment with offline
* experiment with search
* control our datas!

CC'ing @clee @faramarz @andreasgal @cgjones @protz @fabricedesre