My subject check
Before sending a message, signal an error
if the subject line is empty 1.
(with-eval-after-load 'notmuch
(add-hook 'notmuch-mua-send-hook
#'notmuch-mua-subject-check))
Footnotes:
1
“Is empty” as per the notmuch-mua-subject-regexp
.