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

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 Display Modes
  #1 (permalink)  
Old 11-22-2006, 08:26 AM
Intermediate Member
 
Posts: 18
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
Reply With Quote
  #2 (permalink)  
Old 11-22-2006, 09:47 AM
Zimbra Employee
 
Posts: 1,434
Default zmmailbox

I believe that you should be able to create new user calendars using zmmmailbox.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 11-22-2006, 11:40 AM
Zimbra Employee
 
Posts: 228
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!
Reply With Quote
  #4 (permalink)  
Old 11-22-2006, 12:04 PM
Intermediate Member
 
Posts: 18
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
Reply With Quote
  #5 (permalink)  
Old 11-22-2006, 12:08 PM
Zimbra Employee
 
Posts: 228
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!
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0