Sunday, March 8, 2009

Exchange calendar sync to iPhone through Evolution

Finally, I have found an easy and transparent way of syncing my corporate calendar (on the evil MS Exchange server, of course) to my iPhone over-the-air, without involving any manual work. The same recipe can actually work for other mobile phones as well, read on!

Current syncing path is as follows:
Exchange → Evolution → (gcaldaemon) → Google Calendar → (Google Sync) iPhone

If it looks long, don't worry - it is not so difficult in reality.

  1. Exchange - this is where the calendar is stored, which very often is located behind a firewall, where it cannot be talked to directly from a mobile phone.
  2. Exchange is accessed using Evolution Exchange connector (poor Outlook users may find this helpful).
  3. gcaldaemon is an open-source tool for doing various interesting tricks with Google Calendar, including syncing it with Evolution, see below for details.
  4. Google Calendar is a full-featured web-based calendar, where you can store several calendars. It is especially convenient together with GMail, but doesn't require it.
  5. Google Sync is a new service from Google that can sync your Google Calendar (and contacts from GMail) to various programs and mobile devices.
  6. iPhone is where you get both your personal and corporate calendars, always with you :-)
So, actually the keyword here is Google Calendar. As it is quite popular, it is already supported by a lot of software, so you can use it as a middle man in various synching situations, not only the one described here.

I have started testing the Google Sync from Google Calendar to my iPhone. Google had a nice idea to implement Exchange ActiveSync protocol, which is already supported by iPhone (probably there are lots of Google employees using iPhones). Now you just need to setup an Exchange account in your phone and configure it to talk to m.google.com instead of an Exchange server. This is another brilliant implementation after GMail started talking IMAP natively. Follow the instructions on the Google website linked above. As a bonus, you will get 2-way syncing of GMail contacts as well if you want. And everything will work via Push, so you will get almost instant updates when you change something on the either the phone or on the web.

Push
syncing works on the iPhone by keeping HTTP connections open for as long as possible by sending a request and waiting for a response as long as your mobile operator's infrastructure permits (can get up to several hours). During this time no traffic is moving between iPhone and Google, so unless something is changed, no need to pay for any data, which is actually better than polling of server every 10 minutes or so. When changes are available, the server stops blocking the connection and immediately pushes data to the phone, hence the name.

Tip: to select which calendars to sync with your phone, navigate to m.google.com/sync with you phone and select what is needed. I have at least 2 calendars there: personal and corporate one - you can conveniently see appointments in different colors.

As soon as this works perfectly, all you need to do is get your Exchange (or any other) events to Google Calendar. This is very easy using the gcaldaemon. See their website for lots of usage scenarios. We are currently interested in file-based synchronization with Evolution. Note that Evolution now has native Google Calendar support as well, but this allows you viewing your exising Google Calendar in Evolution, but not syncing your corporate Exchange calendar to Google.

Evolution, while talking to Exchange, caches your calendar data in a file called cache.ics. You can find it in:
~/.evolution/exchange/exchange___username;auth=Basic@server_;personal_Calendar/cache.ics
substitute your own username name server there.

All you need is to configure gcaldaemon to monitor this file and send updates to Google Calendar, totally automatically. This way you will get one way sync from Exchange to Google, but this should be enough to not miss your all-important meetings at work, because then your phone will alert you whenever you are. I run gcaldaemon right after Evolution from the same launcher, so I don't have to worry about syncing anymore. For that, I have created the ~/bin/evolution file (local bin has priority in PATH, at least on Ubuntu), and this script on execution first runs /usr/bin/evolution, sleeps several seconds and then starts gcaldaemon.

Google sync actually supports syncing with many mobile devices, including the iPhone, Android phones, Nokia Series60 phones with Symbian (contacts only for now), Blackberry, and the awkward Windows Mobile. But even if you cannot directly sync calendar to you phone, you can ask Google to alert you with SMS before each meeting starts, which is almost as good, gcaldaemon will ask Google to do this by default for each event it syncs, provided that Google knows your mobile number. Give this a try - lots of operators are supported worldwide, it's not only US anymore.

The only thing that worries now that this just is another step towards Google taking over the World :-)


47 comments:

Anonymous said...

If this really works I will buy you a hooker and a 6 pack. I've been trying to do exactly this for the last 2 effing years.

Unknown said...

It works for me and for several more people I know :-)

Have you succeeded?

Anonymous said...

...please where can I buy a unicorn?

Anonymous said...

Can anyone recommend the best Managed Service system for a small IT service company like mine? Does anyone use Kaseya.com or GFI.com? How do they compare to these guys I found recently: [url=http://www.n-able.com] N-able N-central remote windows login
[/url] ? What is your best take in cost vs performance among those three? I need a good advice please... Thanks in advance!

Anonymous said...

Hi !.
You may , probably very interested to know how one can collect a huge starting capital .
There is no need to invest much at first. You may commense to get income with as small sum of money as 20-100 dollars.

AimTrust is what you need
The firm represents an offshore structure with advanced asset management technologies in production and delivery of pipes for oil and gas.

It is based in Panama with structures everywhere: In USA, Canada, Cyprus.
Do you want to become really rich in short time?
That`s your choice That`s what you desire!

I feel good, I started to take up income with the help of this company,
and I invite you to do the same. If it gets down to select a correct companion who uses your savings in a right way - that`s AimTrust!.
I make 2G daily, and my first investment was 500 dollars only!
It`s easy to start , just click this link http://vypytexuv.wtcsites.com/vaqazeg.html
and go! Let`s take our chance together to feel the smell of real money

Anonymous said...

Esto no me conviene. http://nuevascarreras.com/comprar-cialis-es/ cialis genericos Credo che si sbaglia. Sono sicuro. Io propongo di discuterne. Scrivere a me in PM, parlare. comprar cialis en andorra eguzafzvcf [url=http://www.mister-wong.es/user/COMPRARCIALIS/comprar-viagra/]comprar viagra[/url]

Anonymous said...

Good day, sun shines!
There have been times of hardship when I didn't know about opportunities of getting high yields on investments. I was a dump and downright pessimistic person.
I have never imagined that there weren't any need in large starting capital.
Now, I feel good, I started to get real money.
It's all about how to select a proper companion who uses your funds in a right way - that is incorporate it in real deals, parts and divides the profit with me.

You may get interested, if there are such firms? I'm obliged to tell the truth, YES, there are. Please be informed of one of them:
http://theinvestblog.com [url=http://theinvestblog.com]Online Investment Blog[/url]

Anonymous said...

My friend and I were recently talking about technology, and how integrated it has become to our daily lives. Reading this post makes me think back to that discussion we had, and just how inseparable from electronics we have all become.


I don't mean this in a bad way, of course! Ethical concerns aside... I just hope that as technology further develops, the possibility of uploading our memories onto a digital medium becomes a true reality. It's a fantasy that I dream about all the time.


(Posted on Nintendo DS running [url=http://kwstar88.livejournal.com/491.html]R4[/url] DS TF3)

Anonymous said...

i honestly love your writing kind, very interesting.
don't quit as well as keep writing simply because it simply that is worth to read it.
looking forward to see alot more of your current posts, thanks ;)

Anonymous said...

After reading you site, Your site is very useful for me .I bookmarked your site!
I am been engaged 10 years on the 12 battery If you have some questions, please get in touch with me.

Anonymous said...

Saw your site bookmarked on Reddit.I love your site and marketing strategy.Your site is very useful for me .I bookmarked your site!

Anonymous said...

After reading your this blog, I thought your blog is great! i like it .thank you!

Anonymous said...

[url=http://www.ganar-dinero-ya.com][img]http://www.ganar-dinero-ya.com/ganardinero.jpg[/img][/url]
[b]Toda la informacion que buscas sobre ganar dinero[/b]
Hemos hallado la mejor pagina web en internet de como trabajo casa. Como nos ha sido de utilidad a nosotros, tambien les puede ser de utilidad a ustedes. No son solo formas de ganar dinero con su pagina web, hay todo tipo de formas de ganar dinero en internet...
[b][url=http://www.ganar-dinero-ya.com][img]http://www.ganar-dinero-ya.com/dinero.jpg[/img][/url]Te recomendamos entrar a [url=http://www.ganar-dinero-ya.com/]Ganar dinero desde casa[/url][url=http://www.ganar-dinero-ya.com][img]http://www.ganar-dinero-ya.com/dinero.jpg[/img][/url][/b]

Anonymous said...

I want to thank the blogger very much not only for this post but also for his all previous efforts. I found blog.azib.net to be greatly interesting. I will be coming back to blog.azib.net for more information.

Anonymous said...

After reading you site, Your site is very useful for me .I bookmarked your site!
guide to buy shoes
buy cheap shoes
[url=http://www.guidetobuyshoes.com]buy shoes[/url]

cheap viagra said...

hello buddy very useful information about Exchange calendar sync to iPhone through Evolution thanks for sharing!!

Anonymous said...

Good day!

Let me introduce myself,
friends call me Peter.
Generally I’m a social gmabler. for a long time I’m keen on online-casino and poker.
Not long time ago I started my own blog, where I describe my virtual adventures.
Probably, it will be interesting for you to read my notes.
Please visit my blog. http://allbestcasino.com I’ll be interested on your opinion..

Anonymous said...

Glad to materialize here. Good day or night everybody!

For sure you didn’t here about me yet,
my name is James F. Collins.
Generally I’m a venturesome gambler. all my life I’m carried away by online-casino and poker.
Not long time ago I started my own blog, where I describe my virtual adventures.
Probably, it will be interesting for you to find out how to win not loose.
Please visit my web site. http://allbestcasino.com I’ll be glad would you find time to leave your opinion.

Anonymous said...

i honestly adore your writing taste, very interesting.
don't quit and keep posting as a result it just simply nicely to look through it,
impatient to look over more of your current articles, have a good one!

viagra online said...

I feel good, I started to take up income with the help of this company,
and I invite you to do the same. If it gets down to select a correct companion who uses your savings in a right way - that`s AimTrust!.
I make 2G daily, and my first investment was 500 dollars only!

Anonymous said...

[url=http://getloan.skachatnow.co.cc/amsterdam-auto-loan-used.php]amsterdam auto loan used[/url]
[url=http://loanstoday.skachatnow.co.cc/loan-louisville-money-quick.php]loan louisville money quick[/url]
http://paydayloan.skachatnow.co.cc/how-to-get-a-construction-loan.php - how to get a construction loan
http://fastloans.skachatnow.co.cc/alabama-bad-credit-auto-loan.php - alabama bad credit auto loan
http://paydayloan.skachatnow.co.cc/auto-bad-credit-kansas-loan.php - auto bad credit kansas loan
[url=http://loanstoday.skachatnow.co.cc/best-refinance-loan-rate.php]best refinance loan rate[/url]
[url=http://fastloans.skachatnow.co.cc/stafford-loan-payment.php]stafford loan payment[/url]
[url=http://fastloans.skachatnow.co.cc/bad-credit-guarenteed-loan-personal.php]bad credit guarenteed loan personal[/url]
[url=http://newloans.skachatnow.co.cc/bad-credit-card-loan.php]bad credit card loan[/url]
[url=http://newloans.skachatnow.co.cc/unsecured-business-start-up-loan.php]unsecured business start up loan[/url]

Anonymous said...

However, last four 7 days period she shocked with a delicate Tiffany ring which was found in Tim’s wardrobe.At that moment, Fanny was so excited that she preferred to positioned on the affordable Tiffany Jewellery . So she positioned the Silver Jewellery back again in the direction of wardrobe. She was in any way instances waiting for Tim to provide her the large surprise. She should pretend she experienced by no suggests observed the Tiffany Accessories . people times should be her happiest times in her life.Until last 7 days when Fanny assisted Tim to tidy his room, Fanny found the custom made Silver Accessories experienced disappeared. Fanny was pretty nervous.

Anonymous said...

However, last four 7 days period she shocked with a delicate Tiffany ring which was found in Tim’s wardrobe.At that moment, Fanny was so excited that she preferred to positioned on the affordable Tiffany Jewellery . So she positioned the Silver Jewellery back again in the direction of wardrobe. She was in any way instances waiting for Tim to provide her the large surprise. She should pretend she experienced by no suggests observed the Tiffany Accessories . people times should be her happiest times in her life.Until last 7 days when Fanny assisted Tim to tidy his room, Fanny found the custom made Silver Accessories experienced disappeared. Fanny was pretty nervous.

Anonymous said...

halls split settlement
name own price hotel
half price hotels uk
indian airlines booking
inexpensively fee hotels
cheap hotels near disneyland
economical legislature extensions
for a song driving lessons
inferior evade houses
hotel auteuil tour eiffel
assay of hotels
cornell case
hotel deals in uk
hotel daniel
inn range booking
whistler motel deals
repute price breakfast
hotels pensionen
disciple accommodation
victoria guest-house deals
flights
cheap key west hotels
shoddy hotels niagara
low-grade hotels
darling comradely motels

Anonymous said...

low caravanserai prices
prices on hotel
buying cheap company
hotels pet sisterly
airlie beach motel
really cheap hotels
worthy deals hotels
tinpot business cards
hostelry specials
claret hotel
echuca treaty
merimbula rooms
edifice phone deals
taj hotel
hotels in la
bbq booking
hotel booking in france
near hotel
senior unseemly gains quarters
cheap bikinis
haven stephens conformation
cheap airport hotel
hotels miles
inn prices
last pension booking

Anonymous said...

hi all
http://www.tor.com/community/users/presfirviohyd1975
http://www.tor.com/community/users/ongradovab1981
http://www.tor.com/community/users/veticmaima1983
http://www.tor.com/community/users/bircirebu1986
http://www.tor.com/community/users/parmolanhy1982

Anonymous said...

Stacey, and pigs fly?!

Mickey

Anonymous said...

Great post! You should definitely follow up on this topic!!!

-Kindest regards,
Sabrina

Anonymous said...

I need to hear what Trina will do with this.

Monica

Anonymous said...

texas auto insurance auto insurance pa

adalat online said...

online adalat

augmentin 375 mg said...

However, last four 7 days period she shocked with a delicate Tiffany ring which was found in Tim’s wardrobe.At that moment, Fanny was so excited that she preferred to positioned on the affordable Tiffany Jewellery . So she positioned the Silver Jewellery back again in the direction of wardrobe. She was in any way instances waiting for Tim to provide her the large surprise. She should pretend she experienced by no suggests observed the Tiffany Accessories . people times should be her happiest times in her life.Until last 7 days when Fanny assisted Tim to tidy his room, Fanny found the custom made Silver Accessories experienced disappeared. Fanny was pretty nervous.

aciphex 20mg said...

aciphex 20mg

generic actos said...

generic actos

generic epivir said...

generic epivir

generic erythromycin said...

generic erythromycin

Anonymous said...

Good Job, I am happy to find this well

-

Anonymous said...

Welcome to here I am really glad to be here to share my online shopping experience with you.

- Yadira LEMAY

Anonymous said...

gay fudge packing jennifer love hewitt sex scene sex pictures and movies dating free lavalife online single dp sex stories free phone sex hotline gay pride tattoo free bukkake thumbs atlanta gay guide

Anonymous said...

urgyy forum

Anonymous said...

Hey just joining, glad to be in! I look ahead to partcipating and have study a great deal so far, so hello!

Sooo anyways, plenty about me, see you close to and hello again haha.

BTW, what can I do to change the time zone for my account? It's kind of weird having the time like 5 hours off lol

Anonymous said...

Hey just becoming a member, glad to be here! I appear ahead to partcipating and have examine a good deal so far, so hello!

I've been involved in some other forums and have uncovered this site to have a good deal greater written content, so it can make sense to eventually post!

PS, how do I change the time zone for my account? It's kind of weird having the time like 5 hours off lol

Anonymous said...

Hey just becoming a member, glad to be in! I look ahead to partcipating and have study a good deal so far, so hello!

Sooo anyways, adequate info about me, see you close to and hello yet again haha.

BTW where is the option to make myself have a cool title like some people here have?

jacksonville north carolina hotels said...

It is amazing. Really I like it.. Thank you for doing such a great job.

Anonymous said...

[url=http://paydayloansrew.net#sk2877]cash advance loans[/url] *uy3046 ! are carrying unpunctually payments, defaults and CCJs in your name.

Anonymous said...

buy tramadol online tramadol 50 mg bula - zaldiar tramadol hcl

Anonymous said...

tramadol online buy tramadol online visa - buy tramadol online cash delivery