Improve prompting for mail sending by by 'report-emacs-bug'

* lisp/mail/emacsbug.el (report-emacs-bug-hook): Don't ask about
mail sending options if 'message-server-alist' is set.  (Bug#81176)
This commit is contained in:
Augusto Stoffel 2026-05-28 11:43:59 +02:00 committed by Eli Zaretskii
parent 916572f6e0
commit cff9c8bc00

View file

@ -473,6 +473,7 @@ and send the mail again%s."
;; questions about From header validity if the user is going to ;; questions about From header validity if the user is going to
;; use mailclient, anyway. ;; use mailclient, anyway.
(when (or (and (derived-mode-p 'message-mode) (when (or (and (derived-mode-p 'message-mode)
(not message-server-alist)
(eq (message-default-send-mail-function) 'sendmail-query-once)) (eq (message-default-send-mail-function) 'sendmail-query-once))
(and (not (derived-mode-p 'message-mode)) (and (not (derived-mode-p 'message-mode))
(eq send-mail-function 'sendmail-query-once))) (eq send-mail-function 'sendmail-query-once)))