Re: Calendar events sent to Outlook client do not work
Thomas Brüderli <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kolab |
|---|---|
| Message-ID | <51626D23.5080708__30696.9234873124$1365404972$gmane$org@kolabsys.com> |
Mat Cantin wrote: > On 2013-03-28 10:22, Thomas Brüderli wrote: >> Mat Cantin wrote: >>> On 2013-03-28 0:38, Thomas Brüderli wrote: >>>> Mat Cantin wrote: >>>>> I'm testing on Outlook 2003, OWA on Exchange 2003, Outlook 2007, >>>>> and >>>>> Office 365 webmail. >>>>> >>>>> I can provide the emails I'm sending as attachments so you can see >>>>> the >>>>> headers if that helps, let me know. >>>> And even more interesting would be a full email source of an iTip >>>> invitation that actually works in Outlook. That might help us find >>>> the >>>> difference. >>> Would an invite email generated from an Outlook client work? I've >>> attached >>> an email from an Oulook to Outlook which works: >>> meeting-from-outlook.msg. >>> And a message from Kolab with the patches that does not work: >>> meeting-from-kolab.msg. >> Thanks for that. At first sight, I see an additional header >> >> Content-class: urn:content-classes:calendarmessage >> >> Maybe that already does the trick. I'll try to compose a patch for you >> to test with. >> >>[...] >> >> Maybe you can verify whether an invitation from Gmail works with >> Outlook 2003. > > A test invite form Gmail to all the Outlook versions I'm running > worked. > > I can confirm that the invites work in Outlook 2010, but they don't > work in Office 365, Exchange 2010 OWA, Exchange 2007 OWA, Exchange 2003 > OWA, Outlook 2007 or Outlook 2003. OWA 2007/2010 and Office 365 actually > renames the event.ics file to "not supported calendar message.ics". It's great that MS keeps their product generations in sync :-) > > Let me know about the patch, I can test against all the Outlook > platforms pretty quickly now that I've got my accounts all setup. :-) Please find attached a patch that adds the Content-class: header. If that doesn't help, we can try the Gmail way and add the ics part with Content-Type: application/ics Regards, Thomas _______________________________________________ Kolab-devel mailing list [email protected] https://www.intevation.de/mailman/listinfo/kolab-devel
calendar_itip_outlook_contentclass.diff
(text/plain, 847 B)
diff --git a/plugins/calendar/lib/calendar_itip.php b/plugins/calendar/lib/calendar_itip.php
index 6ff5b6b..6b21492 100644
--- a/plugins/calendar/lib/calendar_itip.php
+++ b/plugins/calendar/lib/calendar_itip.php
@@ -159,7 +159,9 @@ class calendar_itip
// attach ics file for this event
$ical = $this->cal->get_ical();
$ics = $ical->export(array($event), $method);
- $message->addAttachment($ics, 'text/calendar', 'event.ics', false, '8bit', '', RCMAIL_CHARSET . "; method=" . $method);
+ $message->addAttachment($ics, 'text/calendar', 'event.ics', false, '8bit', '', RCMAIL_CHARSET . "; method=" . $method,
+ '', '', null, null, '', null, // language, location, n_encoding, f_encoding, description, h_charset
+ array('Content-class' => 'urn:content-classes:calendarmessage'));
return $message;
}