summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2021-11-19 11:16:33 +0100
committerChristian Mollekopf <mollekopf@kolabsys.com>2021-11-30 11:39:44 +0100
commit294ef5b076c42d029fdb58b8167124f0cfd9e4a8 (patch)
tree8265ccbb6a403e5af8ae86514ee85a5e57da2046 /pykolab
parent80cc0c3bf7366671e36cd866f32a611eb1d36048 (diff)
downloadpykolab-294ef5b076c42d029fdb58b8167124f0cfd9e4a8.tar.gz
Make iTip messages outlook compatible
Summary: Use multipart/alternative and loose the Content-Disposition header Differential Revision: https://git.kolab.org/D3056
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/xml/event.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pykolab/xml/event.py b/pykolab/xml/event.py
index 276bb6f..a668f77 100644
--- a/pykolab/xml/event.py
+++ b/pykolab/xml/event.py
@@ -1273,7 +1273,7 @@ class Event(object):
from email import charset
charset.add_charset('utf-8', charset.SHORTEST, charset.QP)
- msg = MIMEMultipart()
+ msg = MIMEMultipart("alternative")
msg_from = None
attendees = None
@@ -1353,7 +1353,6 @@ class Event(object):
part.set_payload(self.as_string_itip(method=method))
- part.add_header('Content-Disposition', 'attachment; filename="event.ics"')
part.add_header('Content-Transfer-Encoding', '8bit')
msg.attach(part)