aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-10-13 15:32:12 +0000
committerRichard M. Stallman1998-10-13 15:32:12 +0000
commitfb035bbfe1efa76d56bffcf7fb63f1928b5085c9 (patch)
tree30f9acb23dac4e41d54aa7e5daf2098630220110
parent88b5c6b38eb77cbb3263065c0aca2fd2d6eb26bc (diff)
downloademacs-fb035bbfe1efa76d56bffcf7fb63f1928b5085c9.tar.gz
emacs-fb035bbfe1efa76d56bffcf7fb63f1928b5085c9.zip
(smtpmail-send-data-1): Use encode-coding-string.
(smtpmail-address-buffer): Add defvar. (smtpmail-recipient-address-list, smtpmail-read-point): Likewise.
-rw-r--r--lisp/mail/smtpmail.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el
index 6e567148b1a..af22f6341f8 100644
--- a/lisp/mail/smtpmail.el
+++ b/lisp/mail/smtpmail.el
@@ -100,6 +100,12 @@ and sent with `smtpmail-send-queued-mail'."
100 "File name of queued mail index, 100 "File name of queued mail index,
101This is relative to `smtpmail-queue-dir'.") 101This is relative to `smtpmail-queue-dir'.")
102 102
103(defvar smtpmail-address-buffer)
104(defvar smtpmail-recipient-address-list)
105
106;; Buffer-local variable.
107(defvar smtpmail-read-point)
108
103(defvar smtpmail-queue-index (concat smtpmail-queue-dir 109(defvar smtpmail-queue-index (concat smtpmail-queue-dir
104 smtpmail-queue-index-file)) 110 smtpmail-queue-index-file))
105 111
@@ -558,8 +564,8 @@ This is relative to `smtpmail-queue-dir'.")
558(defun smtpmail-send-data-1 (process data) 564(defun smtpmail-send-data-1 (process data)
559 (goto-char (point-max)) 565 (goto-char (point-max))
560 566
561 (if (not (null smtpmail-code-conv-from)) 567 (when smtpmail-code-conv-from
562 (setq data (code-convert-string data smtpmail-code-conv-from *internal*))) 568 (setq data (encode-coding-string data *internal* smtpmail-code-conv-from)))
563 569
564 (if smtpmail-debug-info 570 (if smtpmail-debug-info
565 (insert data "\r\n")) 571 (insert data "\r\n"))