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.
I don't see how it can break something, but mail related code in Emacs
is quite involved, so I won't surprise if it is :)
I don't have anything against this patch. Maybe adding a comment why
this variable is set would help in the future. And using setopt instead
of setq.
---
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