Results 1 to 2 of 2

Thread: Cleanup a calendar before synchronize with an ICS calendar file

  1. #1
    Join Date
    Aug 2011
    Rep Power

    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.

  2. #2
    Join Date
    Aug 2011
    Rep Power

    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 :
    /opt/zimbra/bin/zmprov sm emptyFolder /MyCalendarName
    For me this thread can be close.


Similar Threads

  1. speed up the net
    By mcesari in forum Administrators
    Replies: 10
    Last Post: 04-25-2008, 11:24 AM
  2. problems importing ics file to user calendar
    By abliss in forum Administrators
    Replies: 5
    Last Post: 09-21-2007, 10:07 AM
  3. centos 5 zimbra 4.5.6 no statistics
    By rutman286 in forum Installation
    Replies: 9
    Last Post: 08-14-2007, 09:30 AM
  4. Traslation SVN tree status
    By meikka in forum I18N/L10N - Translations
    Replies: 7
    Last Post: 02-13-2007, 10:13 AM
  5. M3 problem with shares
    By titangears in forum Users
    Replies: 4
    Last Post: 01-12-2006, 12:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts