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 Search this Thread Display Modes
  #1 (permalink)  
Old 08-11-2008, 01:48 PM
Senior Member
 
Posts: 62
Default Accpeting REST ICS Import appointments while supressing mail

I'm importing several ICS files for new users with curl as described at:

http://wiki.zimbra.com/index.php?tit...ng_into_Zimbra

I have a problem where each appointment shows up "ready to be accepted": it's a darker color and upon viewing the appointment it looks like the user could accept it, which would then send mail and change the color back to normal. Is there a way to import a calendar so that each appointment is already accepted? Something like the following except for a calendar, not email would be nice:

zmmailbox -z -m $user markFolderRead /$folder

Assuming that I can mark the calendar as read can I suppress all of the acceptance mail that would be sent as a result of accepting the appointments?
Reply With Quote
  #2 (permalink)  
Old 08-15-2008, 06:46 AM
Senior Member
 
Posts: 62
Default

I don't have this solved but I've made progress.

The appointments show up as invitations because the owner is from a different domain. So running the following before curling fixed it:

sed -i s/lafayette.edu/zmail.lafayette.edu/g $file.ics

However, I'm concerned the problem will come up again when I send the server into production.

The production (non-Zimbra) server's domain is lafayette.edu. I'm migrating a copy of my user's data to the pre-production Zimbra server whose domain is zmail.lafayette.edu for now. When I change the Zimbra server's domain to lafayette.edu will these appointments become invitations again?

I tried removing the domain from the ical file so I just had $username (not $username@$domain). Is there a variation of the replace option I can run that will ignore the domain or something I can use which means "this domain"; perhaps a variable like localhost?
Reply With Quote
  #3 (permalink)  
Old 08-18-2008, 02:32 PM
Senior Member
 
Posts: 62
Default

I've made more progress and have a method to achive the desireable behavior but I'd like to know why it works.

If I import an iCal file for user@foo into user@bar then I need to replace foo with bar in the Organizer field (RFC 2445, 4.8.4.3) in the iCal file first. If I don't do this then each appointment will appear as an invitation not owned by the user. An easy way to see if you have this issue is to see if Zimbra displays the appointment with a darker color.

I can use the above method for all of my users but I was concerned that if I then changed bar back to foo to send the server into production that I'd have this same problem. I did a test (http://wiki.zimbra.com/index.php?title=ZmSetServerName) and it seems that a hostname change didn't change appointment status. Downloading the iCal file from the changed hostname still shows the old hostname. This is the desireable behavior but I would like to know why.

Why would the organizer field's value of a different host cause a tentative appointment for an import but a standard appointment for a hostname change?
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.