# HG changeset patch # User Kenichi Handa # Date 885433319 0 # Node ID 480d3121ae142131ce4c6384d126eb7aa506e07f # Parent 711aeb8dff36fe710aebbe432bbad8aa619f920f (sendmail-coding-system): Doc-string modified. (sendmail-send-it): Select a safe coding system to encode an outgoing mail. diff -r 711aeb8dff36 -r 480d3121ae14 lisp/mail/sendmail.el --- a/lisp/mail/sendmail.el Thu Jan 22 01:41:18 1998 +0000 +++ b/lisp/mail/sendmail.el Thu Jan 22 01:41:59 1998 +0000 @@ -606,7 +606,7 @@ ;;;###autoload (defvar sendmail-coding-system nil - "Coding system to which to encode the mail.") + "Coding system to encode the outgoing mail.") (defun sendmail-send-it () (require 'mail-utils) @@ -625,6 +625,10 @@ (or sendmail-coding-system default-buffer-file-coding-system 'iso-latin-1)))) + (if (fboundp select-safe-coding-system-function) + (setq sendmail-coding-system + (funcall select-safe-coding-system-function + (point-min) (point-max) sendmail-coding-system))) (unwind-protect (save-excursion (set-buffer tembuf)