emacs-patch-review
Port of Thunderbird Patch Review to mu4e.
git clone git://mccd.space/emacs-patch-reviewcommit eb64d4a527f6604f8a9a591f7752766243c9453c
parent e88c6db59302904ea126126c64a475d7b6421aac
Author: Pi Agent <agent@pi.local>
Date: Mon, 3 Aug 2026 11:19:28 +0200
Add example ~/.msmtprc for the two SMTP accounts
Gmail and Fastmail over implicit TLS:465, each selecting its account
from the cache file written by mail-auth (passwordeval). mu4e contexts
pass -a <account> via message-sendmail-extra-arguments.
Diffstat:
1 file changed, 46 insertions(+), 0 deletions(-)
diff --git a/mail/msmtprc.example b/mail/msmtprc.example
@@ -0,0 +1,45 @@
+## Example ~/.msmtprc -- one gmail account + one fastmail account.
+##
+## Install (backup first if you already have one):
+## cp /srv/src/emacs-patch-review/mail/msmtprc.example ~/.msmtprc
+## chmod 600 ~/.msmtprc
+##
+## Sending is account-selected by mu4e: each mu4e context sets
+## `message-sendmail-extra-arguments' to ("-a" "<account>"), and `message`
+## already has send-mail-function 'sendmail-send-it + sendmail-program
+## /usr/bin/msmtp. So sending from either address Just Works.
+##
+## Passwords are reused from the same cached files `mail-auth` maintains,
+## so no extra passkey touch when composing.
+
+defaults
+auth on
+tls on
+tls_starttls off # use implicit TLS on :465 for both servers
+#logfile ~/.cache/msmtp.log
+
+# ---------------------------------------------------------------------------
+# marc.coquand@piva.earth (Gmail)
+# ---------------------------------------------------------------------------
+account piva
+host smtp.gmail.com
+port 465
+from marc.coquand@piva.earth
+user marc.coquand@piva.earth
+passwordeval "head -n1 ${XDG_RUNTIME_DIR:-/run/user/$(id -u)}/mbsync/gmail.pass"
+
+# ---------------------------------------------------------------------------
+# marc@coquand.email (Fastmail, IMAP login marcc@fastmail.fr)
+# ---------------------------------------------------------------------------
+account fastmail
+host smtp.fastmail.com
+port 465
+from marc@coquand.email
+# Fastmail's SMTP login is the mailbox's Fastmail username.
+user marcc@fastmail.fr
+passwordeval "head -n1 ${XDG_RUNTIME_DIR:-/run/user/$(id -u)}/mbsync/fastmail.pass"
+
+# Make the first account the default (e.g. for `mail`/`sendmail` callers
+# that don't pass -a). Override with `account default : fastmail` if you
+# prefer.
+account default : piva
+\ No newline at end of file