Publishing to Yahoo! Calendar

| | Comments (0) | TrackBacks (0)

I use Yahoo! Calendar to keep track of my calendar events. I sync to it from Lightning/Thunderbird and iCal. And use the iSync plugin to sync it to my phone. I also use mutt over a screen session at times. During such times, this is how I update my events to Yahoo! Calendar.



  • Save the text/calendar attachment from the mail to a file, say cal.ics

  • Determine the UUID of the calendar event. Not the best, but one that works is given beow.


  • perl -n0e 's/(.*?)UID:(.*?)\w+?:(.*)/\2/gms; s/\s+//gms;print ' tmp/ical.ics

  • Yahoo! Calendar supports Caldav. Upload the files to the calendar with the following command.


  • curl -i -k --data-binary '@tmp/ical.ics' -H "Content-Type: text/calendar" -X PUT \
    https://caldav.calendar.yahoo.com/dav/<yid>/Calendar/<calendarname>/<uid>.ics \
    -u <yid>:<password>

  • Voila, You are done.

And here is how, I discovered this. Enable debugging in iCal, with these commands and then start iCal from a terminal. You can see the HTTP transactions between iCal and the calendar server.

defaults write com.apple.ical IncludeDebugMenu YES
defaults write com.apple.ical LogHTTPActivity YES

0 TrackBacks

Listed below are links to blogs that reference this entry: Publishing to Yahoo! Calendar.

TrackBack URL for this entry: http://balajin.net/cgi-bin/mt/mt-tb.cgi/366

Leave a comment

About this Entry

This page contains a single entry by balaji published on May 17, 2011 11:31 PM.

73rd Sree Rama Navami Celebrations at Fort High School was the previous entry in this blog.

Making the minister smile is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.