From 813ce795ff7a835fc8554015dacd200180b533f7 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 23 Apr 2024 23:06:38 +0300 Subject: [PATCH] mu4e-icalendar: integrate with mu4e-compose So we use context and display settings. --- mu4e/mu4e-icalendar.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mu4e/mu4e-icalendar.el b/mu4e/mu4e-icalendar.el index c5eabc2c..30feb51c 100644 --- a/mu4e/mu4e-icalendar.el +++ b/mu4e/mu4e-icalendar.el @@ -134,15 +134,14 @@ (or organizer (plist-get (car (plist-get msg :reply-to)) :email) (plist-get (car (plist-get msg :from)) :email) - (mu4e-warn "Cannot find organizer")))) - (message-reply organizer) - (goto-char (point-max)) + (mu4e-warn "Cannot find organizer"))) + (message-cite-function #'mu4e-message-cite-nothing)) + (mu4e-compose-reply-to organizer) (message-goto-body) (mml-insert-multipart "alternative") (mml-insert-empty-tag 'part 'type "text/plain") (mml-attach-buffer ical-name "text/calendar; method=REPLY; charset=UTF-8") - (mu4e-compose-mode) (when mu4e-icalendar-trash-after-reply ;; Override `mu4e-sent-handler' set by `mu4e-compose-mode' to ;; also trash the message (thus must be appended to hooks).