~abcdw/rde-devel

rde: features: message: Add send-mail-function configuration v1 PROPOSED

Nicolas Graves: 1
 features: message: Add send-mail-function configuration

 1 files changed, 2 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~abcdw/rde-devel/patches/56877/mbox | git am -3
Learn more about email & git

[PATCH rde] features: message: Add send-mail-function configuration Export this patch

When trying to use emacs-debbugs, it's quite inconvenient to be
prompted for a send-mail configuration for each action.

This is because the debbugs-gnu-send-mail-function is unset (nil), and
will therefore default to send-mail-function.  With
feature-emacs-message, we know how to configure this function.

I'm not sure this is the safest thing to do though.  After testing,
this make it very easy to send control messages through emacs-debbugs
without confirmation or edit for comments.  But I guess if we should
adapt that, it should be done through debbugs-gnu-send-mail-function
rather than send-mail-function.
---
 src/rde/features/mail.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/rde/features/mail.scm b/src/rde/features/mail.scm
index 3b1e9269..e1f31a1d 100644
--- a/src/rde/features/mail.scm
+++ b/src/rde/features/mail.scm
@@ -273,6 +273,8 @@ but it won't appear on the right Maildir directory."
             (msmtp
              `((setq sendmail-program
                      ,(file-append msmtp "/bin/msmtp"))
                (setq send-mail-function
                      'message-send-mail-with-sendmail)
                (setq message-send-mail-function
                      'message-send-mail-with-sendmail)
                (setq message-sendmail-f-is-evil t)
-- 
2.47.1