mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
emacs: Call `notmuch-mua-send-hook' hooks when sending a message
Previously any hook functions attached to `notmuch-mua-send-hook' were ignored.
This commit is contained in:
parent
4e213fe9b4
commit
e8cb6b2cd6
2 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
|
@ -1107,7 +1107,6 @@ output=$(test_emacs "(mapcar 'notmuch-escape-boolean-term (list
|
|||
test_expect_equal "$output" '("\"\"" "abc`~!@#$%^&*-=_+123" "\"(abc\"" "\")abc\"" "\"\"\"abc\"" "\"'$'\x01''xyz\"" "\"“xyz”\"")'
|
||||
|
||||
test_begin_subtest "Sending a message calls the send message hooks"
|
||||
test_subtest_known_broken
|
||||
emacs_deliver_message \
|
||||
'Testing message sending hooks' \
|
||||
'This is a test of the message sending hooks.' \
|
||||
|
|
Loading…
Reference in a new issue