Mozilla Sunbird, Apple iCal and The Missing Sync

Inbetween moving house I have also been playing with a little 12" iBook, I think I am going to buy it since I do quite fancy it.

One of my big wishes in life has been to get Sunbird Sync'd up with my iPaq as I have mentioned here a few times before. The Apple has that ability, though not natively, but by buying a 3rd party application called The Missing Sync.

After failing to find a demo version I ended up buying this tool only to find that syncing the device with a Sunbird file loaded into iCal totally nukes the iPaq, needed a hard reset.

After much digging around these files and coming up with the types of entries I have, creating matching ones in a new file in iCal I finally got a good idea of the format that iCal likes. Seems there are 2 major problems with Sunbird data:

1) Sunbird puts things on multiple lines, for some reason iCal does not like this, so I just joined the lines together so that you now have SUMMARY:An Event on one line rather than 2.
2) Monthly repeating events should really have a BYMONTHDAY=nn clause at the end of the RRULE, Sunbird does not add them.

Once I had a perl script to do the fixup and loaded it into iCal syncing worked 100% and I now have a iPaq synced up with iCal files, though cant really edit them in Mozilla :(

4 Comments

Here's a PHP script I use to "fix" the file. The user links to this script instead of the ics file (in this case, johnk.ics). Note that the ^M characters are control characters made by typing ctrl-v ctrl-m in vi. You may have another way of specifying those.


<?php

$file = file_get_contents('johnk.ics');

header("Content-Type: text/calendar");

$file = preg_replace('/^M\n :/s', ':', $file);
echo preg_replace('/^M/s', '', $file);
?>

Maybe this is something for you. I wrote a free SyncTool for Sunbird / Pocket PC. It's java so it works with Windows / Mac / Linux.

It's still beta but you may give it a try.

Infos:

http://www.finchsync.com/beta

Maybe you give me a hint, if you like it.

Regards

Markus

Anyone know if Sunbird can sync to .MAC

http://www.finchsync.com/beta

link is not working. Please repost with correct one.

thank you.

I have been using I cal with google calendar, ( these synch through a third party software ).

These get synched to a blackberry and an I pod ( I cal ).
Was thinking about using Sunbird now ... since my google calendar,
sometimes gives me trouble accesing it, due to google maintenance.

Leave a comment

Recent Entries

  • flashpolicyd 2.0

    I wrote a multi threaded server for Adobe Flash Policy requests, some background from Adobe:Since policy files were first introduced, Flash Player has recognized /crossdomain.xml...

  • Adventures with Ruby

    Some more about my continuing experiences with ruby, in my last post I saidthe language does what you'd expect and as you'll see in my...

  • New programming language of choice - Ruby

    I have fallen out of love with Perl some time ago, I cannot point to one specific thing about it that put me off, I...

  • On working from home

    I've not been posting much here, work has been incredibly manic the last while, especially I need to still finish off my SSO posts with...

  • Rework of puppet facts for /etc/facts.txt

    Previously I blogged a custom fact that reads /etc/facts.txt to build up some custom facts for use in Puppet manifests, well I've since learned a...

Close