about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2021-07-15T12·59-0400
committergrfn <grfn@gws.fyi>2021-07-16T13·44+0000
commitb5339a7e5160032eee074c56d06be2cc89bb0863 (patch)
tree77eb525cc82f407b26c3342919dca289ca3d9bcf
parent8e33ae4ad7b8ddc66d67fa79955644a8e0c9f265 (diff)
fix(gs/emacs): Pass --read-envelope-from to sendmail r/2690
Change-Id: I8e4c0171336cad3ed817956b07b371aba706ab9f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3248
Reviewed-by: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
-rw-r--r--users/grfn/emacs.d/email.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/users/grfn/emacs.d/email.el b/users/grfn/emacs.d/email.el
index 9510dd3ed1..83076898b4 100644
--- a/users/grfn/emacs.d/email.el
+++ b/users/grfn/emacs.d/email.el
@@ -11,7 +11,10 @@
                  :key "w")
           (:name "personal" :query "tag:inbox and tag:important and path:personal/**"
                  :key "p"))
-        message-send-mail-function 'message-send-mail-with-sendmail)
+        message-send-mail-function 'message-send-mail-with-sendmail
+        message-sendmail-f-is-evil 't
+        message-sendmail-envelope-from 'header
+        message-sendmail-extra-arguments '("--read-envelope-from"))
 
   (add-hook! notmuch-message-mode-hook #'notmuch-company-setup))
 
@@ -25,7 +28,10 @@
                  :key "w")
           (:name "personal" :query "tag:inbox and tag:important and path:personal/**"
                  :key "p"))
-        message-send-mail-function 'message-send-mail-with-sendmail)
+        message-send-mail-function 'message-send-mail-with-sendmail
+        message-sendmail-f-is-evil 't
+        message-sendmail-envelope-from 'header
+        message-sendmail-extra-arguments '("--read-envelope-from"))
 
 (set-popup-rule! "^\\*notmuch-saved-search-"
   :ignore t)