Thursday, 31 March 2011

Make event emails sent from 10.6 iCal Server come from actual user

In Server Admin, the iCal settings allow you to specify a single email from which event invitations will come. For a personal calendar though, you really want the email to come from your own email.


The script which sends invitations is found at:

/usr/share/caldavd/lib/python/twistedcaldav/mail.py

It appears that it tries to find the appropriate email address, but I could not figure out how to make a value ever be present where it was looking.

So, I modified the script as shown below. Change:
  if organizer.startswith("mailto:"):   orgEmail = fromAddr = organizer[7:]  else:   fromAddr = serverAddress   orgEmail = None  cn = calendar.getOrganizerProperty().params().get('CN', (None,))[0] 
To: ...

Add to digg Add to Reddit Add to Slashdot Email this Article Add to StumbleUpon

Source: http://feeds.macosxhints.com/click.phdo?i=db93ccd49f7ceee723f6cf0de359d203

mac news apple store news applestore promo code imac software

No comments:

Post a Comment