(rfc2047-encode-message-header): Don't encode if
authorDave Love <fx@gnu.org>
Thu, 23 Nov 2000 16:09:21 +0000 (16:09 +0000)
committerDave Love <fx@gnu.org>
Thu, 23 Nov 2000 16:09:21 +0000 (16:09 +0000)
default-enable-multibyte-characters is nil.

lisp/gnus/rfc2047.el

index 12034d7..e6b7407 100644 (file)
@@ -141,11 +141,15 @@ Should be called narrowed to the head of the message."
              (rfc2047-encode-region (point-min) (point-max)))
             ((eq method 'default)
              (if (and (featurep 'mule)
+                      (if (boundp 'default-enable-multibyte-characters)
+                          default-enable-multibyte-characters)
                       mail-parse-charset)
                  (mm-encode-coding-region (point-min) (point-max)
                                           mail-parse-charset)))
             ((mm-coding-system-p method)
-             (if (featurep 'mule)
+             (if (and (featurep 'mule)
+                      (if (boundp 'default-enable-multibyte-characters)
+                          default-enable-multibyte-characters))
                  (mm-encode-coding-region (point-min) (point-max) method)))
             ;; Hm.
             (t)))