{"id":169,"date":"2008-10-06T21:04:22","date_gmt":"2008-10-06T20:04:22","guid":{"rendered":"http:\/\/blog.pczone.be\/?p=169"},"modified":"2008-10-06T15:12:19","modified_gmt":"2008-10-06T14:12:19","slug":"z-push-imap-iphone","status":"publish","type":"post","link":"https:\/\/blog.pczone.be\/?p=169","title":{"rendered":"z-push imap + Iphone"},"content":{"rendered":"<p>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&#8217;s not really 15 minutes &#8230;<\/p>\n<p>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.<\/p>\n<p>I did however have to do some minor changes in the php code.<\/p>\n<p>In config.php changed backend to imap<\/p>\n<blockquote><p>\n$BACKEND_PROVIDER = &#8220;BackendIMAP&#8221;;\n<\/p><\/blockquote>\n<p>in backend\/imap.php changed to retrieval to only retrieve the INBOX to check for changes (I have +100 folders)<\/p>\n<blockquote><p>\n$list = @imap_getmailboxes($this->_mbox, $this->_server, &#8220;%&#8221;);\n<\/p><\/blockquote>\n<p>in backend\/diffbackend.php I changed the default cutoffdate (this showed up 0 in the logging)<\/p>\n<blockquote><p>\nfunction getCutOffDate($restrict) {<br \/>\n        $restrict = SYNC_FILTERTYPE_3DAYS;\n<\/p><\/blockquote>\n<p>Now my automatic notify works \ud83d\ude42<\/p>\n<p>Like they mention in the forums, it does drain your battery life on the IPhone. So be carefull when you turn it on!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;s not really 15 minutes &#8230; The nice people &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.pczone.be\/?p=169\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;z-push imap + Iphone&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[4],"tags":[],"class_list":["post-169","post","type-post","status-publish","format-standard","hentry","category-informatics"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3U9nk-2J","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/blog.pczone.be\/index.php?rest_route=\/wp\/v2\/posts\/169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pczone.be\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pczone.be\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pczone.be\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pczone.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=169"}],"version-history":[{"count":2,"href":"https:\/\/blog.pczone.be\/index.php?rest_route=\/wp\/v2\/posts\/169\/revisions"}],"predecessor-version":[{"id":171,"href":"https:\/\/blog.pczone.be\/index.php?rest_route=\/wp\/v2\/posts\/169\/revisions\/171"}],"wp:attachment":[{"href":"https:\/\/blog.pczone.be\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pczone.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pczone.be\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}