Message attachment reminder for Emacs
Warns the user if they try and send an email without an attachment when
they body text contains language that suggests an attachment should be
present. Uses message-send-hook
and so is compatible with mu4e
and
gnus
and other email interfaces for Emacs.
This is based off the past work of others but has been cleaned up and made into a dedicated package.
Installation
MELPA
The preferred way to install message-attachment-reminder
is via
MELPA - then you can just M-x package-install RET
message-attachment-reminder RET
To enable then simply add the following to your init file:
(require 'message-attachment-reminder)
Or is you use use-package
this
can be simplified to:
(use-package message-attachment-reminder
:ensure t)
Manual
If you would like to install the package manually, download or clone it and
place within Emacs' load-path
, then you can require it in your init file
like this:
(require 'message-attachment-reminder)
Configuration
The phrases to look for can be customized via
message-attachment-reminder-regexp
.
The warning message shown to the user to alert them to a missing attachment
is specified via message-attachment-reminder-warning
.
Finally, by default quoted lines are not checked however this can be
changed by setting message-attachment-reminder-exclude-quoted
to nil
.
License
Copyright © 2020 Alex Murray
Distributed under GNU GPL, version 3.