aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2003-08-24 15:23:12 +0000
committerGlenn Morris2003-08-24 15:23:12 +0000
commit2265c62399b8c63ca905f149e6582ee3d9c9b4a6 (patch)
treec5149608ea0b77ca92c55a991fe36f0e7b39b02d
parent0016482806975647e636ba4020013758ab61c8d2 (diff)
downloademacs-2265c62399b8c63ca905f149e6582ee3d9c9b4a6.tar.gz
emacs-2265c62399b8c63ca905f149e6582ee3d9c9b4a6.zip
(smtpmail-mail-address): Doc change.
(smtpmail-send-it): Make treatment of envelope-from consistent with sendmail.el.
-rw-r--r--lisp/mail/smtpmail.el11
1 files changed, 5 insertions, 6 deletions
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el
index e24f20b8691..a9382aa69b4 100644
--- a/lisp/mail/smtpmail.el
+++ b/lisp/mail/smtpmail.el
@@ -212,7 +212,7 @@ This is relative to `smtpmail-queue-dir'.")
212;;; 212;;;
213 213
214(defvar smtpmail-mail-address nil 214(defvar smtpmail-mail-address nil
215 "Value of `user-mail-address' in ambient buffer.") 215 "Value to use for envelope-from address for mail from ambient buffer.")
216 216
217;;;###autoload 217;;;###autoload
218(defun smtpmail-send-it () 218(defun smtpmail-send-it ()
@@ -223,7 +223,9 @@ This is relative to `smtpmail-queue-dir'.")
223 (case-fold-search nil) 223 (case-fold-search nil)
224 delimline 224 delimline
225 (mailbuf (current-buffer)) 225 (mailbuf (current-buffer))
226 (smtpmail-mail-address user-mail-address) 226 (smtpmail-mail-address
227 (or (and mail-specify-envelope-from (mail-envelope-from))
228 user-mail-address))
227 (smtpmail-code-conv-from 229 (smtpmail-code-conv-from
228 (if enable-multibyte-characters 230 (if enable-multibyte-characters
229 (let ((sendmail-coding-system smtpmail-code-conv-from)) 231 (let ((sendmail-coding-system smtpmail-code-conv-from))
@@ -545,9 +547,6 @@ This is relative to `smtpmail-queue-dir'.")
545 (host (or smtpmail-smtp-server 547 (host (or smtpmail-smtp-server
546 (error "`smtpmail-smtp-server' not defined"))) 548 (error "`smtpmail-smtp-server' not defined")))
547 (port smtpmail-smtp-service) 549 (port smtpmail-smtp-service)
548 (envelope-from (or (mail-envelope-from)
549 smtpmail-mail-address
550 user-mail-address))
551 response-code 550 response-code
552 greeting 551 greeting
553 process-buffer 552 process-buffer
@@ -697,7 +696,7 @@ This is relative to `smtpmail-queue-dir'.")
697 ""))) 696 "")))
698; (smtpmail-send-command process (format "MAIL FROM:%s@%s" (user-login-name) (smtpmail-fqdn))) 697; (smtpmail-send-command process (format "MAIL FROM:%s@%s" (user-login-name) (smtpmail-fqdn)))
699 (smtpmail-send-command process (format "MAIL FROM: <%s>%s%s" 698 (smtpmail-send-command process (format "MAIL FROM: <%s>%s%s"
700 envelope-from 699 smtpmail-mail-address
701 size-part 700 size-part
702 body-part)) 701 body-part))
703 702