mu4e-draft: invoke mu4e-compose-pre-hook

We should invoke it, as documented.
This commit is contained in:
Dirk-Jan C. Binnema 2024-05-17 20:02:39 +03:00
parent 142d91f218
commit 3ff2f9f1ac
1 changed files with 2 additions and 1 deletions

View File

@ -553,7 +553,8 @@ This is mu4e's version of `message-hidden-headers'.")
"Get ready for message composition.
PARENT is the parent message, if any."
(unless (mu4e-running-p) (mu4e 'background)) ;; start if needed
(mu4e--context-autoswitch parent mu4e-compose-context-policy))
(mu4e--context-autoswitch parent mu4e-compose-context-policy)
(run-hooks 'mu4e-compose-pre-hook))
(defun mu4e--prepare-draft-headers (compose-type)
"Add extra headers for message based on COMPOSE-TYPE."