summaryrefslogtreecommitdiff
path: root/mu4e
diff options
context:
space:
mode:
authorChristophe Troestler <Christophe.Troestler@umons.ac.be>2019-04-18 16:05:08 +0200
committerChristophe Troestler <Christophe.Troestler@umons.ac.be>2019-07-13 14:07:18 +0200
commit5573e7bed0cfa2b2165ac7e7456e90c3d3454dff (patch)
treea21da4ca665ac865628ed27adee81554b8e322a8 /mu4e
parent5ccd58b40b99b598c5c0be0715274ea7ebf00e64 (diff)
mu4e (ical): Use a text/plain alternative when replying to ical events
Diffstat (limited to 'mu4e')
-rw-r--r--mu4e/mu4e-icalendar.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/mu4e/mu4e-icalendar.el b/mu4e/mu4e-icalendar.el
index 78ef29d..a5bef3e 100644
--- a/mu4e/mu4e-icalendar.el
+++ b/mu4e/mu4e-icalendar.el
@@ -80,11 +80,13 @@
(insert "To: " organizer)))
(message-goto-body)
(insert "\n\n")
+ (mml-insert-multipart "alternative")
+ (mml-insert-part "text/plain")
(let ((reply-event (gnus-icalendar-event-from-buffer
buffer-name mu4e-user-mail-address-list)))
(insert (gnus-icalendar-event->gnus-calendar reply-event status)))
- (mml-insert-multipart "alternative")
- (mml-attach-buffer buffer-name "text/calendar; method=REPLY; charset=UTF-8")
+ (forward-line 1); move past closing tag
+ (mml-attach-buffer buffer-name "text/calendar; method=REPLY; charset=utf-8")
(message-goto-subject)
(delete-region (line-beginning-position) (line-end-position))
(insert "Subject: " (capitalize (symbol-name status))