about summary refs log tree commit diff
path: root/users/grfn
diff options
context:
space:
mode:
Diffstat (limited to 'users/grfn')
-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 9510dd3ed15e..83076898b4dc 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)