Pierre Neidhardt <[email protected]> writes: > Marius Bakke <[email protected]> writes: > >> I use 'msmtp' as the transport and have configured it to look up >> passwords from 'password-store'. >> >> $ git config --get-regexp sendemail.* >> sendemail.smtpserver /home/marius/.guix-profile/bin/msmtp >> sendemail.envelopesender auto > > From the (1)git-send-email man page: > > --8<---------------cut here---------------start------------->8--- > --smtp-server=<host> > If set, specifies the outgoing SMTP server to use (e.g. > smtp.example.com or a raw IP address). Alternatively it can specify > a full pathname of a sendmail-like program instead; the program > must support the -i option. Default value can be specified by the > sendemail.smtpServer configuration option; the built-in default is > to search for sendmail in /usr/sbin, /usr/lib and $PATH if such > program is available, falling back to localhost otherwise. > --8<---------------cut here---------------end--------------->8--- > > The smtp program must support the -i option. > > I use Emacs' message-send to send e-mails. > I don't think Emacs accepts the -i option. > > I could write a wrapper, but I don't think this is the most ideal > option.
I see. FWIW my emacs uses 'msmtp' too, with this snippet:
(setq mail-specify-envelope-from t
message-sendmail-envelope-from 'header
mail-envelope-from 'header
sendmail-program "/home/marius/.guix-profile/bin/msmtp"
mail-host-address "fastmail.com"
send-mail-function 'message-send-mail-with-sendmail
message-send-mail-function 'message-send-mail-with-sendmail
message-directory "~/Mail/drafts"
message-kill-buffer-on-exit t)
signature.asc
Description: PGP signature
