-
-
Notifications
You must be signed in to change notification settings - Fork 63
GNU Emacs and Lieer
To use Lieer with notmuch+GNU Emacs, start by following the general installation and configuration instructions. Then see below.
Feel free to edit this page and add any further customizations, tips and tricks that you use.
You can use the lieer as a stand-in for sendmail
from GNU Emacs, which will allow you to send emails from notmuch as if they were sent directly from your GMail account. Add this to your init file (update file names to match your setup):
(setq sendmail-program "gmi")
(setq message-sendmail-extra-arguments '("send" "--quiet" "-C" "~/.mail/account.gmail"))
Note that the --quiet
argument is necessary because Lieer is verbose by default, and Emacs correctly treats any output from sendmail
as an error.
Since your emails will be saved automatically on GMail when sending them with Lieer, you will likely want to turn off saving local copies of outgoing mail. Add this to your init file:
;; Optional: Don't save outgoing mail locally.
(setq notmuch-fcc-dirs nil)
If the gmi
executable is not in your PATH
, Emacs will be unable to find it. This could be the case for example when running Lieer from a git repository checked out in your home directory. In this case, you could specify sendmail-program
like so:
(setq sendmail-program (expand-file-name "~/path/to/gmi"))