aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/gnus
diff options
context:
space:
mode:
authorLars Ingebrigtsen2012-02-10 19:16:19 +0100
committerLars Ingebrigtsen2012-02-10 19:16:19 +0100
commitcc26d239af9a82cff079556a1daff4b4bf60eb5c (patch)
treef9a7bdaf6d51729ef4f639709b5e752394747748 /lisp/gnus
parent3647f557cf42ae6b33414a454503d2695798a6e6 (diff)
downloademacs-cc26d239af9a82cff079556a1daff4b4bf60eb5c.tar.gz
emacs-cc26d239af9a82cff079556a1daff4b4bf60eb5c.zip
Prompt in a more logical fashion when sending bug reports
* gnus/message.el (message-default-send-mail-function): Made into own function for reuse by emacsbug.el. * mail/emacsbug.el (report-emacs-bug-hook): Query the user first about SMTP before checking the From header. * mail/sendmail.el (sendmail-query-user-about-smtp): Refacored out into own function for reuse by emacsbug.el.
Diffstat (limited to 'lisp/gnus')
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/message.el8
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 9305114b634..38b9139b7dd 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12012-02-10 Lars Ingebrigtsen <larsi@gnus.org>
2
3 * message.el (message-default-send-mail-function): Made into own
4 function for reuse by emacsbug.el.
5
12012-02-09 Juanma Barranquero <lekktu@gmail.com> 62012-02-09 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * gnus.el (gnus-method-ephemeral-p): Move after declaration of defsubst 8 * gnus.el (gnus-method-ephemeral-p): Move after declaration of defsubst
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 5678acc5a2f..2d8bb36f94a 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -655,14 +655,16 @@ Done before generating the new subject of a forward."
655 (t 655 (t
656 (error "Don't know how to send mail. Please customize `message-send-mail-function'")))) 656 (error "Don't know how to send mail. Please customize `message-send-mail-function'"))))
657 657
658;; Useful to set in site-init.el 658(defun message-default-send-mail-function ()
659(defcustom message-send-mail-function
660 (cond ((eq send-mail-function 'smtpmail-send-it) 'message-smtpmail-send-it) 659 (cond ((eq send-mail-function 'smtpmail-send-it) 'message-smtpmail-send-it)
661 ((eq send-mail-function 'feedmail-send-it) 'feedmail-send-it) 660 ((eq send-mail-function 'feedmail-send-it) 'feedmail-send-it)
662 ((eq send-mail-function 'sendmail-query-once) 'sendmail-query-once) 661 ((eq send-mail-function 'sendmail-query-once) 'sendmail-query-once)
663 ((eq send-mail-function 'mailclient-send-it) 662 ((eq send-mail-function 'mailclient-send-it)
664 'message-send-mail-with-mailclient) 663 'message-send-mail-with-mailclient)
665 (t (message-send-mail-function))) 664 (t (message-send-mail-function))))
665
666;; Useful to set in site-init.el
667(defcustom message-send-mail-function (message-default-send-mail-function)
666 "Function to call to send the current buffer as mail. 668 "Function to call to send the current buffer as mail.
667The headers should be delimited by a line whose contents match the 669The headers should be delimited by a line whose contents match the
668variable `mail-header-separator'. 670variable `mail-header-separator'.