z-push imap + Iphone

Like I mentioned in my last post I bought myself an IPhone. Before my IPhone I had my blackberry and I got used to being notified when I got new mail. On the IPhone however IMAP only has 15minutes updates, so you have to wait and it’s not really 15 minutes …

The nice people from zarafa created z-push. An opensource php application that mimics active-sync. I installed on my server and made some small changes. Now it works on my imap account and I get notified of new mails in my inbox.

I did however have to do some minor changes in the php code.

In config.php changed backend to imap

$BACKEND_PROVIDER = “BackendIMAP”;

in backend/imap.php changed to retrieval to only retrieve the INBOX to check for changes (I have +100 folders)

$list = @imap_getmailboxes($this->_mbox, $this->_server, “%”);

in backend/diffbackend.php I changed the default cutoffdate (this showed up 0 in the logging)

function getCutOffDate($restrict) {
$restrict = SYNC_FILTERTYPE_3DAYS;

Now my automatic notify works 🙂

Like they mention in the forums, it does drain your battery life on the IPhone. So be carefull when you turn it on!

thank you Iphone

This morning there was a strike in Belgium. The nice people forgot to mention that they would also do road blocks. It took me 4 hours and 30 minutes to drive to work. Normally it takes me 1 hour and 10 minutes. (I leave at 5.30) so this morning I arrived at 10 o’clock.

2 weeks ago I received my Iphone. I used TubeTV to download some videos from the google channel (e.g. the html5 stuff) they got converted to Iphone format and I had uploaded it. So during my +4 hour drive I watched some episodes of hak5 and also the html5 google video . I can tell you one thing, I am glad I bought the IPhone. There are still some pieces that could be better (sending text messages amongst others) but having a multimedia device in your pocket is really nice (If only nokia had given the linux tablet a phone, I would have bought it a long time ago but I’m really not going to stuff a mobile phone and pda in my pants!)

I know openmoko is going pretty well but from what I understood, making a phone call isn’t always without problems so that’s really not an option as primary phone!