1) Get Prowl from App Store and register with http://prowl.weks.net/
2) Once you register and log in, go to SETTINGS on the web site and generate your unique API code
3) Install Python, Mobile Terminal and Screen from Cydia
4) Download the necessary Python scripts: http://www.sendspace.com/file/naomvg
(alternatively, you can follow instructions from http://forums.cocoaf...hp?f=45&t=20355 and get all the scripts from there. I am just providing my assembled collection for ease of use)
5) Edit the "main.py" script and specify your API code + Gmail username/password
6) Copy those scripts to your iPhone
7) Run Mobile Terminal from iPhone, run "screen" (just so that you can run the script in the background when you exit Mobile Terminal) and type "python scriptname".
8) That's it. You can now detach from Screen (CTRL+A+D) and exit Mobile Terminal. To go back and reload your Screen session, type "screen -r"
Your iphone is now constantly connected to Gmail. It does not use any bandwidth and simply idles until new mail is received. It then sends a message to the Prowl server which pushes it to your iPhone. You get a nice notification from the Prowl client.
If you have a dedicated linux server running somewhere, you can just execute those scripts from there instead of your iPhone.
It usually notifies me within 3-7 seconds of receiving a new message.
Cheers!
P.S. There is one caveat: if your connection changes from one network to another (say, you were on 3G and are now on Edge or Wi-Fi, the script will lose connection to Gmail and you will have to re-run it again. perhaps those who know python can fix it)
P.S.S. Sending notification to Prowl to be pushed to your iPhone is rather, uhm, odd way of doing it (but is much better than forwarding your Gmail to a web-based servers that support push, such as Yahoo). Now that there is a Grip client for iPhone, perhaps someone can make it so that messages are sent to Grip instead of Prowl.
This post has been edited by crimsontwo: 23 July 2009 - 01:50 AM
Reason for edit: Updated instructions

Sign In »
Register Now!
Help

Back to top

















