]> git.eshelyaron.com Git - emacs.git/commitdiff
(gnus-mule-message-send-mail-function): Find a
authorKenichi Handa <handa@m17n.org>
Thu, 8 Apr 1999 02:34:12 +0000 (02:34 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 8 Apr 1999 02:34:12 +0000 (02:34 +0000)
coding system to encode the message by
select-message-coding-system.

lisp/gnus/gnus-mule.el

index 4d22cecc1694821e6a9407071185ee78d584b165..371b3dc8b17f5b9cd3a61e2d4b6032f7de2e569f 100644 (file)
@@ -177,8 +177,10 @@ coding-system for reading and writing respectively."
 
 ;; Encode a mail message before sending it.
 (defun gnus-mule-message-send-mail-function ()
-  (if sendmail-coding-system
-      (encode-coding-region (point-min) (point-max) sendmail-coding-system)))
+  (let ((coding (if enable-multibyte-characters
+                   (select-message-coding-system))))
+    (if coding
+       (encode-coding-region (point-min) (point-max) coding))))
 
 ;;;###autoload
 (defun gnus-mule-initialize ()