aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2011-07-06 17:39:32 +0200
committerLars Magne Ingebrigtsen2011-07-06 17:39:32 +0200
commitf0691d22b1ca04107154afb6ebccc58dbcf40295 (patch)
treef1dc23467258930953546b3772fe16e311450b7b
parent1f2b92cb8733f0aae18088d91e0f440174d3ed83 (diff)
downloademacs-f0691d22b1ca04107154afb6ebccc58dbcf40295.tar.gz
emacs-f0691d22b1ca04107154afb6ebccc58dbcf40295.zip
* mail/sendmail.el (send-mail-function): Change the default to `sendmail-query-once'.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/mail/sendmail.el13
2 files changed, 6 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 29c1a1220ab..030f86192f9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12011-07-06 Lars Magne Ingebrigtsen <larsi@gnus.org> 12011-07-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 2
3 * mail/sendmail.el (send-mail-function): Change the default to
4 `sendmail-query-once'.
5
3 * net/network-stream.el (network-stream-open-starttls): Try using 6 * net/network-stream.el (network-stream-open-starttls): Try using
4 a plain connection even if the server offered STARTTLS, and we 7 a plain connection even if the server offered STARTTLS, and we
5 kinda wanted to use it, if Emacs doesn't have any STARTTLS 8 kinda wanted to use it, if Emacs doesn't have any STARTTLS
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 13da0627fff..47a6d0af0c5 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -144,19 +144,11 @@ Otherwise, let mailer send back a message to report errors."
144;;;###autoload 144;;;###autoload
145(put 'send-mail-function 'standard-value 145(put 'send-mail-function 'standard-value
146 ;; MS-Windows can access the clipboard even under -nw. 146 ;; MS-Windows can access the clipboard even under -nw.
147 '((if (or (and window-system (eq system-type 'darwin)) 147 '('sendmail-query-once))
148 (eq system-type 'windows-nt))
149 'mailclient-send-it
150 'sendmail-send-it)))
151 148
152;; Useful to set in site-init.el 149;; Useful to set in site-init.el
153;;;###autoload 150;;;###autoload
154(defcustom send-mail-function 151(defcustom send-mail-function 'sendmail-query-once
155 (if (or (and window-system (eq system-type 'darwin))
156 ;; MS-Windows can access the clipboard even under -nw.
157 (eq system-type 'windows-nt))
158 'mailclient-send-it
159 'sendmail-send-it)
160 "Function to call to send the current buffer as mail. 152 "Function to call to send the current buffer as mail.
161The headers should be delimited by a line which is 153The headers should be delimited by a line which is
162not a valid RFC822 header or continuation line, 154not a valid RFC822 header or continuation line,
@@ -170,6 +162,7 @@ This is used by the default mail-sending commands. See also
170 (function-item mailclient-send-it :tag "Use Mailclient package") 162 (function-item mailclient-send-it :tag "Use Mailclient package")
171 function) 163 function)
172 :initialize 'custom-initialize-delay 164 :initialize 'custom-initialize-delay
165 :version "24.1"
173 :group 'sendmail) 166 :group 'sendmail)
174 167
175(defvar sendmail-query-once-function 'query 168(defvar sendmail-query-once-function 'query