mu4e/icalendar: fix free variable ‘original-msg’

This commit is contained in:
Christophe Troestler 2021-03-16 20:54:56 +01:00
parent e6d92d4fef
commit 3621314ac2
1 changed files with 2 additions and 5 deletions

View File

@ -172,13 +172,10 @@ response in icalendar format."
;; also trash the message (thus must be appended to hooks).
(add-hook
'message-sent-hook
#'mu4e~icalendar-setup-sent-hook-fn
(defun mu4e~icalendar-trash-hook()
(setq mu4e-sent-func (mu4e~icalendar-trash-message original-msg)))
t t))))
(defun mu4e~icalendar-setup-sent-hook-fn ()
(setq mu4e-sent-func
(mu4e~icalendar-trash-message original-msg)))
(defun mu4e~icalendar-insert-diary (event reply-status filename)
"Insert a diary entry for the EVENT in file named FILENAME.
REPLY-STATUS is the status of the reply. The possible values are