Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-29-2011, 05:35 AM
New Member
 
Posts: 3
Default Cleanup a calendar before synchronize with an ICS calendar file

Dear all,

At first, I hope I'm in the right place because this is the first time I write in Zimbra's forum.

I have written a php program to export as ICS with data store in a old system, and, to import it in a share zimbra calendar, I use :

PHP Code:
exec("curl -u ".$zimbraRessourceLogin.":".$zimbraRessourcePassword." --upload-file ./".$salleInfos['calendarFileName'].".ics http://".$zimbraServeur."/home/".$zimbraRessource."/".$salleInfos['calendarName']."?fmt=ics"$out); 
This importation must be run each day, and, before launch it, I want to know if there's a way to clean up my calendar (removing ALL appointment) using an online command or any other command line command.

I don't want to delete and recreate the calendar because I think I'll lost all my share for the person using this calendar.

I've seen different intersting links
but I'm not sure this is the correct way to do it. So before go further, I'd rather ask some specialists!!!

Many thanks for your help,

Frédéric (from France...what explain my strange english :-)

Last edited by frinaldi; 08-29-2011 at 07:34 AM..
Reply With Quote
  #2 (permalink)  
Old 08-31-2011, 12:05 AM
New Member
 
Posts: 3
Wink The solution

Dear all,

I try the "cleanFolder" and it works for me.

So for those who need to know how to do this using command line :
Code:
/opt/zimbra/bin/zmprov sm myuser@zimbra.com emptyFolder /MyCalendarName
For me this thread can be close.

Fred
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.