Industry


Ads by TechWords

See your link here


Seth Weintraub's picture
Seth Weintraub

Apple versus Google

Push email on the iPhone? Howto.

With the iPhone SDK event a few days away, many are anticipating Microsoft Exchange and Lotus push email clients for the iPhone. If you have an IMAP account and a jailbroken iPhone, you can have "pretty much" the same functionality right now.

I use quotes because this little hack doesn't involve an active connection to the server. It does, however, change the interval of automatic server checking from 15 minutes to 1 minute. That means you will get your email an average of 30 seconds from when it hits the server. While it doesn't beat push, for most intents and purposes, it is indistinguishable.

To do this, you will need to be able to ssh into your iPhone. If you are running the 1.1.3 or 4 firmware, you'll want to edit this file:

/var/mobile/Library/Preferences/com.apple.mobilemail.plist

if you are using an older version of the iPhone firmware the file is located at:

/var/root/Library/Preferences/com.apple.mobilemail.plist

In that file towards the top (pictured) you will see an AutofetchInterval Key. Change the string from 15 to 1. Save/Exit/Restart iPhone.

You'll notice that everything is the same except that your iPhone is now checking email every minute instead of four times an hour. Joy!

Since most iPhone users are on unlimited plans (sorry Ireland) the extra data incurred won't cost you anything. Hitting the mail server 15 times as often will have a slight hit on the battery life. It hasn't been noticeable to me however..

Warning: If you go into your Settings/Mail/Auto-Check on your iPhone, you will reset the interval to 15 minutes and you'll have to redo the above process. Conversely, if you do want to reset it to factory settings, it is just that easy.

Rejoice! Now your iPhone can buzz its way through a power lunch with the best Blackberries out there!

What People Are Saying

To do this on 2.0, the file

To do this on 2.0, the file is now called com.apple.persistentconnection.plist (same location - /var/mobile/Library/Preferences).

You need to go into the iPhone settings app > Fetch New Data and set it to fetch data on an interval.

Then edit the plist and enter an interval in seconds. I tried 1 second and emails seemed to arrive literally instantly, although this no doubt will kill the battery.

Hey! I took Cyberduck to get

Hey! I took Cyberduck to get the File out and
Pref Setter to change the Value.
You'll find this awesome application hier:
http://www.versiontracker.com/dyn/moreinfo/macosx/26268

Check it out!

Greez

Using windows SCP characters issue

I do not have MAC computer. So I found WINSCP to connect to iPhone. I found the file but the editor shows bizarre symmbols throughout file. No number parameters. Any ideas? Is there another program I should try instead?
Thanks

Try using putty

Try using putty

The phone can not receive

The phone can not receive incoming calls while it is in EDGE data transfer. If you set your timer from 15 to 1 minute, and if each email server query takes 6 seconds, your phone will be unreachable 10% of the time.

Hey guys! With which

Hey guys!
With which application have you done that?

CU!

AFPd to connect

and TextWrangler to edit. But there are many choices.

You can even edit the file directly on the iPhone

much easier solution is to

much easier solution is to use yahoo email account. It automatically pushes to iPhone. You can also forward other email accounts to the yahoo account.

i'm trying to automaticly

i'm trying to automaticly redirect my emails from work ( Outlook) to a Gmail, but no luck! An error comes up and say that this rule can not be done.

WHy? Can you help me please?

Could you set it for .5?

Could you set it for .5?