Commit b697f6b6a920

Vincent Demeester <vincent@sbr.pm>
2026-01-14 12:01:12
feat(emacs): configure msmtp for mu4e mail sending
- Enable composing, replying, and forwarding emails in mu4e - Use msmtp with envelope-from detection for multi-account support - Complete mu4e email workflow setup Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 1804023
Changed files (1)
dots
.config
emacs
dots/.config/emacs/init.el
@@ -2130,7 +2130,14 @@ Add this function to the `after-save-hook'."
   :config
   (setq mu4e-get-mail-command (concat (executable-find "mbsync") " --all"))
   (setq mu4e-update-interval 1800) ; 30m
-  
+
+  ;; Configure msmtp for sending mail
+  (setq sendmail-program "msmtp"
+        send-mail-function 'smtpmail-send-it
+        message-sendmail-f-is-evil t
+        message-sendmail-extra-arguments '("--read-envelope-from")
+        message-send-mail-function 'message-send-mail-with-sendmail)
+
   (defun vde-mu4e--mark-get-copy-target ()
     "Ask for a copy target, and propose to create it if it does not exist."
     (let* ((target (mu4e-ask-maildir "Copy message to: "))