diff options
author | Glenn Morris <rgm@gnu.org> | 2003-08-24 15:23:12 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2003-08-24 15:23:12 +0000 |
commit | 2265c62399b8c63ca905f149e6582ee3d9c9b4a6 (patch) | |
tree | c5149608ea0b77ca92c55a991fe36f0e7b39b02d /lisp/mail | |
parent | 0016482806975647e636ba4020013758ab61c8d2 (diff) | |
download | emacs-2265c62399b8c63ca905f149e6582ee3d9c9b4a6.tar.gz |
(smtpmail-mail-address): Doc change.
(smtpmail-send-it): Make treatment of envelope-from consistent with
sendmail.el.
Diffstat (limited to 'lisp/mail')
-rw-r--r-- | lisp/mail/smtpmail.el | 11 |
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'.") ;;; (defvar smtpmail-mail-address nil - "Value of `user-mail-address' in ambient buffer.") + "Value to use for envelope-from address for mail from ambient buffer.") ;;;###autoload (defun smtpmail-send-it () @@ -223,7 +223,9 @@ This is relative to `smtpmail-queue-dir'.") (case-fold-search nil) delimline (mailbuf (current-buffer)) - (smtpmail-mail-address user-mail-address) + (smtpmail-mail-address + (or (and mail-specify-envelope-from (mail-envelope-from)) + user-mail-address)) (smtpmail-code-conv-from (if enable-multibyte-characters (let ((sendmail-coding-system smtpmail-code-conv-from)) @@ -545,9 +547,6 @@ This is relative to `smtpmail-queue-dir'.") (host (or smtpmail-smtp-server (error "`smtpmail-smtp-server' not defined"))) (port smtpmail-smtp-service) - (envelope-from (or (mail-envelope-from) - smtpmail-mail-address - user-mail-address)) response-code greeting process-buffer @@ -697,7 +696,7 @@ This is relative to `smtpmail-queue-dir'.") ""))) ; (smtpmail-send-command process (format "MAIL FROM:%s@%s" (user-login-name) (smtpmail-fqdn))) (smtpmail-send-command process (format "MAIL FROM: <%s>%s%s" - envelope-from + smtpmail-mail-address size-part body-part)) |