Rudolf Adamkovič Personal site


Configuration: Attachment check

Before sending a message, signal an error

if the message mentions attachments but none exist (24).
(with-eval-after-load 'notmuch
  (add-hook 'notmuch-mua-send-hook
            #'notmuch-mua-attachment-check))

Footnotes

(24)

“Mentions attachments” as per the notmuch-mua-attachment-regexp.


© 2025 Rudolf Adamkovič under GNU General Public License version 3.
Made with Emacs and secret alien technologies of yesteryear.