Mar 29, '11 07:30:00AM • Contributed by: mmblz
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]
oemail = calendar.getOrganizerProperty().params().get('EMAIL', (None,))[0]
if organizer.startswith("mailto:"):
orgEmail = fromAddr = organizer[7:]
elif oemail is not None:
orgEmail = fromAddr = oemail
else:
fromAddr = serverAddress
orgEmail = None
cn = calendar.getOrganizerProperty().params().get('CN', (None,))[0]
Maybe there is a way to do this without editing a script, but I could not find one.
[crarko adds: I haven't tested this one, but I do have a client with an iCal server and I may try this out. Obviously make sure you have a backup of the original script before modifying it.]
