diff options
| author | Kenichi Handa | 1998-08-25 10:25:03 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-08-25 10:25:03 +0000 |
| commit | 1b23dc8205b4d9a6ad8d6f92f28adec6dff6f977 (patch) | |
| tree | fee3b419a6e1e3da847b4a971ad9f06c691dd26d | |
| parent | 6f6512e8c06e0e4353a9bd33be5f71feaa1b5dd0 (diff) | |
| download | emacs-1b23dc8205b4d9a6ad8d6f92f28adec6dff6f977.tar.gz emacs-1b23dc8205b4d9a6ad8d6f92f28adec6dff6f977.zip | |
(message-send-mail-with-sendmail): Bind
coding-system-for-write by the return value of
select-message-coding-system.
(message-send-mail-with-qmail): Likewise.
| -rw-r--r-- | lisp/gnus/message.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 86d41cc00ad..185696f874a 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -1904,7 +1904,8 @@ the user from the mailer." | |||
| 1904 | (save-excursion | 1904 | (save-excursion |
| 1905 | (set-buffer errbuf) | 1905 | (set-buffer errbuf) |
| 1906 | (erase-buffer)))) | 1906 | (erase-buffer)))) |
| 1907 | (let ((default-directory "/")) | 1907 | (let ((default-directory "/") |
| 1908 | (coding-system-for-write (select-message-coding-system))) | ||
| 1908 | (apply 'call-process-region | 1909 | (apply 'call-process-region |
| 1909 | (append (list (point-min) (point-max) | 1910 | (append (list (point-min) (point-max) |
| 1910 | (if (boundp 'sendmail-program) | 1911 | (if (boundp 'sendmail-program) |
| @@ -1952,6 +1953,7 @@ to find out how to use this." | |||
| 1952 | (run-hooks 'message-send-mail-hook) | 1953 | (run-hooks 'message-send-mail-hook) |
| 1953 | ;; send the message | 1954 | ;; send the message |
| 1954 | (case | 1955 | (case |
| 1956 | (let ((coding-system-for-write (select-message-coding-system))) | ||
| 1955 | (apply | 1957 | (apply |
| 1956 | 'call-process-region 1 (point-max) message-qmail-inject-program | 1958 | 'call-process-region 1 (point-max) message-qmail-inject-program |
| 1957 | nil nil nil | 1959 | nil nil nil |
| @@ -1972,7 +1974,7 @@ to find out how to use this." | |||
| 1972 | ;; free for -inject-arguments -- a big win for the user and for us | 1974 | ;; free for -inject-arguments -- a big win for the user and for us |
| 1973 | ;; since we don't have to play that double-guessing game and the user | 1975 | ;; since we don't have to play that double-guessing game and the user |
| 1974 | ;; gets full control (no gestapo'ish -f's, for instance). --sj | 1976 | ;; gets full control (no gestapo'ish -f's, for instance). --sj |
| 1975 | message-qmail-inject-args) | 1977 | message-qmail-inject-args)) |
| 1976 | ;; qmail-inject doesn't say anything on it's stdout/stderr, | 1978 | ;; qmail-inject doesn't say anything on it's stdout/stderr, |
| 1977 | ;; we have to look at the retval instead | 1979 | ;; we have to look at the retval instead |
| 1978 | (0 nil) | 1980 | (0 nil) |