aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-05-12 17:01:59 +0000
committerRichard M. Stallman2002-05-12 17:01:59 +0000
commit850ed7b3a74cedcc4dea43f92a934080de42ee92 (patch)
treea5e2eb91b92a022b528faa8429ca4a93c3ef1f47
parentea9cc6316844c71b2ebfff07def3263895598533 (diff)
downloademacs-850ed7b3a74cedcc4dea43f92a934080de42ee92.tar.gz
emacs-850ed7b3a74cedcc4dea43f92a934080de42ee92.zip
(smtpmail-mail-address): New variable.
(smtpmail-send-it): Bind and use that instead of `mail-address'. (smtpmail-via-smtp): Likewise.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/mail/smtpmail.el9
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0e1985fb8aa..a5353cfcf6f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12002-05-12 Richard M. Stallman <rms@gnu.org> 12002-05-12 Richard M. Stallman <rms@gnu.org>
2 2
3 * mail/smtpmail.el (smtpmail-mail-address): New variable.
4 (smtpmail-send-it): Bind and use that instead of `mail-address'.
5 (smtpmail-via-smtp): Likewise.
6
3 * ansi-color.el (ansi-color-get-face): Avoid add-to-list on local var. 7 * ansi-color.el (ansi-color-get-face): Avoid add-to-list on local var.
4 (ansi-color-apply-sequence): Avoid duplicates in combined face list. 8 (ansi-color-apply-sequence): Avoid duplicates in combined face list.
5 9
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el
index 59bbd7fbc89..f43c5f17858 100644
--- a/lisp/mail/smtpmail.el
+++ b/lisp/mail/smtpmail.el
@@ -211,6 +211,9 @@ This is relative to `smtpmail-queue-dir'.")
211;;; 211;;;
212;;; 212;;;
213 213
214(defvar smtpmail-mail-address nil
215 "Value of `user-mail-address' in ambient buffer.")
216
214;;;###autoload 217;;;###autoload
215(defun smtpmail-send-it () 218(defun smtpmail-send-it ()
216 (let ((errbuf (if mail-interactive 219 (let ((errbuf (if mail-interactive
@@ -220,7 +223,7 @@ This is relative to `smtpmail-queue-dir'.")
220 (case-fold-search nil) 223 (case-fold-search nil)
221 delimline 224 delimline
222 (mailbuf (current-buffer)) 225 (mailbuf (current-buffer))
223 (mail-address user-mail-address) 226 (smtpmail-mail-address user-mail-address)
224 (smtpmail-code-conv-from 227 (smtpmail-code-conv-from
225 (if enable-multibyte-characters 228 (if enable-multibyte-characters
226 (let ((sendmail-coding-system smtpmail-code-conv-from)) 229 (let ((sendmail-coding-system smtpmail-code-conv-from))
@@ -261,7 +264,7 @@ This is relative to `smtpmail-queue-dir'.")
261 ;; they put one in themselves. 264 ;; they put one in themselves.
262 (goto-char (point-min)) 265 (goto-char (point-min))
263 (if (not (re-search-forward "^From:" delimline t)) 266 (if (not (re-search-forward "^From:" delimline t))
264 (let* ((login mail-address) 267 (let* ((login smtpmail-mail-address)
265 (fullname (user-full-name))) 268 (fullname (user-full-name)))
266 (cond ((eq mail-from-style 'angles) 269 (cond ((eq mail-from-style 'angles)
267 (insert "From: " fullname) 270 (insert "From: " fullname)
@@ -686,7 +689,7 @@ This is relative to `smtpmail-queue-dir'.")
686; (smtpmail-send-command process (format "MAIL FROM:%s@%s" (user-login-name) (smtpmail-fqdn))) 689; (smtpmail-send-command process (format "MAIL FROM:%s@%s" (user-login-name) (smtpmail-fqdn)))
687 (smtpmail-send-command process (format "MAIL FROM: <%s>%s%s" 690 (smtpmail-send-command process (format "MAIL FROM: <%s>%s%s"
688 (or mail-envelope-from 691 (or mail-envelope-from
689 mail-address) 692 smtpmail-mail-address)
690 size-part 693 size-part
691 body-part)) 694 body-part))
692 695