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

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 05-21-2008, 02:16 AM
Partner (VAR/HSP)
 
Posts: 421
Default Mount shared Calendar

Hello!

Is there a way within the web client to mount a shared folder (Calendar, Contacts, ...) that has been "pre-shared" via a distribution list?

I.E., how can I mount a share when there is no invitation mail?

Is it possible to auto-mount shares for new users that are members of a distribution list with common shares?

thanks

Chris
Reply With Quote
  #2 (permalink)  
Old 05-21-2008, 03:13 AM
Special Member
 
Posts: 167
Default

To answer your first question, yes this is possible.

For example, to link to a calendar that has been shared to you:

  1. In Calendar view, right-click on the Calendars heading (immediately beneath the New Calendar button).
  2. Click Link to Shared Calendar
  3. Enter the email address of the account that created the share
  4. Type in the path to the shared item - usually just the name will suffice.
  5. Click OK

You can use the zmmailbox command to create mount points.

Here's an example Perl script will get members of a distribution list (mydistlist@example.com) and mount the folder Calendar on share@example.com as Shared in each member's account.

Code:
#!/usr/bin/perl
# Get distribution list information and filter to just it's members
my $gdl = `/opt/zimbra/bin/zmprov gdl mydistlist\@example.com|grep zimbraMailForwardingAddress:`;
my @dlmembers = split('\n', $gdl);

foreach $member(@dlmembers){

    $member =~ s/zimbraMailForwardingAddress:\s*|\s*$//g;
    print " - Got member '$member'.\n";

    system("zmmailbox -z -m $member createMountpoint --view appointment -F# /Shared share@example.com /Calendar");

}
If you have a search on the forum for "createmountpoint" you'll find loads of other examples for different situations.
__________________
Craig Rodway » Flickr | Last.fm | Del.icio.us | Twitter

Last edited by webman; 05-21-2008 at 02:46 PM..
Reply With Quote
  #3 (permalink)  
Old 05-21-2008, 10:08 AM
New Member
 
Posts: 4
Default

This looks like what I need, but when I attempt to run the zmmailbox command it presents me with the proper usage and doesn't seem to run. Topmost in the return is the usage for createMountPoint so I suspect I am doing something wrong with that command portion?

Im trying now to just do it for a specific user from the command line so I can see the output. Trying to mount the other@mydomain.com Holiday calendar (that is shared) as a CompanyHoliday calendar on my account.

/zmmailbox -z -m me@mydomain.com createMountpoint --view appointment -F # /CompanyHoliday other@mydomain.com /Holiday

Any ideas?
Reply With Quote
  #4 (permalink)  
Old 05-21-2008, 02:43 PM
Special Member
 
Posts: 167
Default

Whoops, my apologies.

If you remove the space from the -F and # so that it becomes -F# it should work without error.

The -F# is the flag option, which in the case of calendar mountpoints, the hash symbol makes it active (places a 'tick' next to it in the Web client).
__________________
Craig Rodway » Flickr | Last.fm | Del.icio.us | Twitter

Last edited by webman; 05-21-2008 at 02:46 PM..
Reply With Quote
  #5 (permalink)  
Old 05-21-2008, 03:39 PM
New Member
 
Posts: 4
Default

Works perfect, thanks for the followup. Brand new to Zimbra, haven't had a chance to get the hang of the CLI bits (but love that they are available).
Reply With Quote
  #6 (permalink)  
Old 05-21-2008, 03:42 PM
Special Member
 
Posts: 167
Default

You're welcome

Hope you stick around and find that Zimbra meets your requirements. It's a very complex and powerful piece of software with lots of useful features for both end users and administrators.

Don't hesitate to ask here on the forum if you have any further queries, and also check the wiki for loads more information (especially command line stuff).
__________________
Craig Rodway » Flickr | Last.fm | Del.icio.us | Twitter
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.