View Single Post
Posts: 356 | Thanked: 123 times | Joined on Dec 2008
#191
Originally Posted by uvatbc View Post
Yes. Its the most convenient, cross language way.


The Ubuntu server is the "default" usage - as in most people will initially do that. What I would prefer is if there were a way to run the publisher on my n810 - or even on my dd-wrt router.
The requirement is because I want to keep my energy costs as low as possible, which means that if I can have most of my publishers/server apps running on those devices that are "always on" then it would be a better utilization than starting my desktop and being forced to keep it on all the time.


I found mqtt, but all my searches for mosquito resulted in the nuisance insect rather than the mail server.

Is mosquito able to poll gmail / yahoo / exchange and when there is a new email, publish the results?

Is it possible for JPush (or its replacement) to do an imap4 client implementation that can lookup gmail or any other standards compliant imap server for new email?

Here is what I was planning for JPush:
1. Install Easy debian on n810, so that I have Java
2. Then install davmail so that I have an imap, ldap, caldav server that can read from Exchange
3. Use some email client that will regularly poll gmail and davmail imap for new messages. This email client will inform JPush about new messages
4. JPush will push a message to n900 to refresh email.

The n810 will sit at home and be permanently connected to the Internet as well as to power.
The n900 will travel with me and use much less battery power because of the push model.

This design can be extended to whatever else needs to have a push update: qgvdial, TOR, DC, eff, etc.
http://mosquitto.org/ is the software that I am talking about. It does not have the ability to poll gmail, or other email services built in. MQTT is a pub/sub system where you can subscribe to topics from the server. The device then receives updates whenever the server posts a new message in one of the topics. My plan was to have the device (n900) subscribe to topics based on what types of notifications it wants to receive from the server (email, google voice, etc).

The server then receives emails when it needs to notify the n900 (for google voice sms messages), or it polls a server to determine when to push the information to the device (for facebook messages, etc).

Email can either be handled by forwarding your email to the server (an option in gmail), or by polling the server for new messages).

I played around with creating an imap4 client on the server that could check for new messages, and notify the n900, but it was a lot harder than I thought (noticing that there is a new email is difficult without storing all of the email so you can tell when there is a new one), so this would require some more work.