Skip to content

Commit

Permalink
mu4e-draft: don't treat delete as a function
Browse files Browse the repository at this point in the history
In mu4e-sent-messages-behavior.

Fixes #2701.
  • Loading branch information
djcb committed Apr 30, 2024
1 parent 14a882f commit c56f8e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mu4e/mu4e-draft.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c56f8e2

Please sign in to comment.