1
0
mirror of https://github.com/djcb/mu.git synced 2024-06-29 07:51:04 +02:00

mu4e-draft: don't treat delete as a function

In mu4e-sent-messages-behavior.

Fixes #2701.
This commit is contained in:
Dirk-Jan C. Binnema 2024-04-30 18:18:58 +03:00
parent 14a882f912
commit c56f8e2f06

View File

@ -250,8 +250,11 @@ Returns the path for the sent message, either in the sent or
trash folder, or nil if the message should be removed after
sending."
(let* ((behavior
(if (functionp mu4e-sent-messages-behavior)
(funcall mu4e-sent-messages-behavior) mu4e-sent-messages-behavior))
(if (and (functionp mu4e-sent-messages-behavior)
;; don't interpret 'delete as a function...
(not (eq mu4e-sent-messages-behavior 'delete)))
(funcall mu4e-sent-messages-behavior)
mu4e-sent-messages-behavior))
(sent-dir
(pcase behavior
('delete nil)