I'm in a situation where I need to move some users from one domain to a different domain, while keeping their calendar and contact data. (Also moving from a test Zimbra machine to a production Zimbra server.)
The user interface Options/Address Book has handy export/import functions that worked perfectly. (Can't we get that for calendars?) Then I found a wiki entry that shows how to use REST to get everything. I saved a copy of the calendar.ics file on the test Zimbra machine and then tried to use a command shown in the wiki but I'm getting errors. Should something like this work?
curl -u firstname.lastname@example.org --data-binary ./calendar.ics http://mynewzimbraserver.com/service...lendar?fmt=ics
The error I get is a bunch of tomcat stuff, but it seems to start with:
<b>root cause</b> <pre>com.zimbra.common.service.ServiceException: parse error: Caught ParseException parsing calendar: net.fortuna.ical4j.data.ParserException: Expected [BEGIN], read [./calendar.ics] at line 1
I checked the first line of the calendar.ics file and it says BEGIN:VCALENDAR
so I'm not sure where to look for a problem.