]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-mua.el
emacs: Call `notmuch-mua-send-hook' hooks when sending a message
[notmuch] / emacs / notmuch-mua.el
index fc8ac687e8208b64d95c9032e7e3e22ea989e5ca..df2ac4470f5200fcfb183f5c1cf01c5c84a15c24 100644 (file)
@@ -543,6 +543,7 @@ unencrypted.  Really send? "))))
 
 (defun notmuch-mua-send-common (arg &optional exit)
   (interactive "P")
+  (run-hooks 'notmuch-mua-send-hook)
   (when (and (notmuch-mua-check-no-misplaced-secure-tag)
             (notmuch-mua-check-secure-tag-has-newline))
     (letf (((symbol-function 'message-do-fcc) #'notmuch-maildir-message-do-fcc))