ical: Don't insert a multipart/alternative with textual event

It seems that tha multipart/alternative confuses Outlook.

Fixes https://github.com/djcb/mu/issues/1729
This commit is contained in:
Christophe Troestler 2020-06-18 23:11:28 +02:00
parent 6ced62685a
commit d49634245d
1 changed files with 1 additions and 6 deletions

View File

@ -151,17 +151,12 @@ response in icalendar format."
;; Not (message-goto-body) to possibly skip mll sign directive
;; inserted by `mu4e-compose-mode-hook':
(goto-char (point-max))
(mml-insert-multipart "alternative")
(mml-insert-part "text/plain")
(let ((reply-event (gnus-icalendar-event-from-buffer
buffer-name (mu4e-personal-addresses))))
(insert (gnus-icalendar-event->gnus-calendar reply-event status)))
(forward-line 1); move past closing tag
(mml-attach-buffer buffer-name "text/calendar; method=REPLY; charset=utf-8")
(message-remove-header "Subject")
(message-goto-subject)
(insert (capitalize (symbol-name status))
": " (gnus-icalendar-event:summary event))
(message-goto-body)
(set-buffer-modified-p nil); not yet modified by user
(when mu4e-icalendar-trash-after-reply
;; Override `mu4e-sent-handler' set by `mu4e-compose-mode' to