Results 1 to 5 of 5

Thread: Creating Calendars from Command Line

  1. #1
    Join Date
    Oct 2006
    Posts
    19
    Rep Power
    9

    Default Creating Calendars from Command Line

    Is it possible to create a calendar for a user from the command line (zmprov or the REST api)?

    It seems that importing calendar data can only be done with existing calendars. I have users with multiple calendars that need to be migrated.

    Thanks.

    --Steve Hideg
    Saint Mary's College

  2. #2
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default zmmailbox

    I believe that you should be able to create new user calendars using zmmmailbox.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    Join Date
    Aug 2005
    Posts
    228
    Rep Power
    10

    Default

    Something like the following should work:

    Code:
    /opt/zimbra/bin/zmprov 
    prov> sm user2@macpro.local
    mailbox: user2@macpro.local, size: 7.88 KB, messages: 2, unread: 2
    mbox user2@macpro.local> createFolder --view appointment --color blue --flags "#" /Calendar2
    259
    mbox user2@macpro.local> postRestUrl /Calendar2 /tmp/cal.ics
    mbox user2@macpro.local> exit
    prov> exit
    The "--view" arg specifies that it is a calendar folder, and the "--flags" arg with "#" means it will be checked by default in the UI.

    The CreateFolder docs in soap.txt are a good place to poke around in.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  4. #4
    Join Date
    Oct 2006
    Posts
    19
    Rep Power
    9

    Default

    Quote Originally Posted by schemers
    Something like the following should work:

    Code:
    /opt/zimbra/bin/zmprov 
    prov> sm user2@macpro.local
    mailbox: user2@macpro.local, size: 7.88 KB, messages: 2, unread: 2
    mbox user2@macpro.local> createFolder --view appointment --color blue --flags "#" /Calendar2
    259
    mbox user2@macpro.local> postRestUrl /Calendar2 /tmp/cal.ics
    mbox user2@macpro.local> exit
    prov> exit
    The "--view" arg specifies that it is a calendar folder, and the "--flags" arg with "#" means it will be checked by default in the UI.

    The CreateFolder docs in soap.txt are a good place to poke around in.

    Thanks.

    So from this can we assume then that the calendars and mailboxes share the same namespace?

    --Steve

  5. #5
    Join Date
    Aug 2005
    Posts
    228
    Rep Power
    10

    Default

    Yes, and it somewhat broken from the UI perspective. You can't have a folder, a search folder, a contacts folder, and a calendar all with the same name, even though there is no indication they are sharing the same namespace in the UI.

    We really should be creating new calendars under /Calendar, new address books under /Contacts, new searches under /Searches, etc, so they wouldn't conflict.
    Bugzilla - Wiki - Downloads - Before posting... Search!

Similar Threads

  1. Auto-provisioning calendar data/shared calendars
    By Rich Graves in forum Administrators
    Replies: 18
    Last Post: 07-23-2009, 12:02 PM
  2. Replies: 4
    Last Post: 06-24-2007, 05:46 PM
  3. Public/Group Folders and Calendars
    By AkshayOnyx in forum Administrators
    Replies: 10
    Last Post: 02-15-2007, 07:37 PM
  4. outlook and multiple calendars
    By bnz in forum Users
    Replies: 6
    Last Post: 11-07-2006, 09:48 AM
  5. Replies: 0
    Last Post: 10-04-2006, 07:09 AM

Posting Permissions

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