diff options
| author | Karl Heuer | 1997-02-20 05:50:19 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-02-20 05:50:19 +0000 |
| commit | ee0a4f29f9a0269a72aa3ca4d2e37376e1623394 (patch) | |
| tree | 3ba6f44d51db8b6bac6f9b4feace9a9ae2fea14f | |
| parent | 79501c8dd3baad1836d61363c161ec48bbffe99b (diff) | |
| download | emacs-ee0a4f29f9a0269a72aa3ca4d2e37376e1623394.tar.gz emacs-ee0a4f29f9a0269a72aa3ca4d2e37376e1623394.zip | |
(sendmail-coding-system): New variable.
(sendmail-send-it): Perform code conversion on sending mail
according to sendmail-coding-system.
| -rw-r--r-- | lisp/mail/sendmail.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 0f697450c5a..89fcfa2f478 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -551,6 +551,9 @@ the user from the mailer." | |||
| 551 | ;; This does the real work of sending a message via sendmail. | 551 | ;; This does the real work of sending a message via sendmail. |
| 552 | ;; It is called via the variable send-mail-function. | 552 | ;; It is called via the variable send-mail-function. |
| 553 | 553 | ||
| 554 | (defvar sendmail-coding-system 'coding-system-iso-2022-7 | ||
| 555 | "Coding system to which to encode the mail.") | ||
| 556 | |||
| 554 | (defun sendmail-send-it () | 557 | (defun sendmail-send-it () |
| 555 | (require 'mail-utils) | 558 | (require 'mail-utils) |
| 556 | (let ((errbuf (if mail-interactive | 559 | (let ((errbuf (if mail-interactive |
| @@ -691,7 +694,8 @@ the user from the mailer." | |||
| 691 | (re-search-forward "^To:\\|^cc:\\|^bcc:\\|^resent-to:\ | 694 | (re-search-forward "^To:\\|^cc:\\|^bcc:\\|^resent-to:\ |
| 692 | \\|^resent-cc:\\|^resent-bcc:" | 695 | \\|^resent-cc:\\|^resent-bcc:" |
| 693 | delimline t)) | 696 | delimline t)) |
| 694 | (let ((default-directory "/")) | 697 | (let ((default-directory "/") |
| 698 | (coding-system-for-write sendmail-coding-system)) | ||
| 695 | (apply 'call-process-region | 699 | (apply 'call-process-region |
| 696 | (append (list (point-min) (point-max) | 700 | (append (list (point-min) (point-max) |
| 697 | (if (boundp 'sendmail-program) | 701 | (if (boundp 'sendmail-program) |