(mm-body-encoding): Consider `message-posting-charset' when deciding
authorFlorian Weimer <fw@deneb.enyo.de>
Tue, 21 Dec 1999 20:21:10 +0000 (20:21 +0000)
committerFlorian Weimer <fw@deneb.enyo.de>
Tue, 21 Dec 1999 20:21:10 +0000 (20:21 +0000)
whether to use 8bit.

lisp/mm-bodies.el

index 26897cb..0901615 100644 (file)
@@ -101,7 +101,10 @@ If no encoding was done, nil is returned."
     (cond
      ((eq bits '7bit)
       bits)
-     ((and (eq charset mail-parse-charset) (not mm-use-ultra-safe-encoding))
+     ((and (not mm-use-ultra-safe-encoding)
+          (or (eq t (cdr message-posting-charset))
+              (memq charset (cdr message-posting-charset))
+              (eq charset mail-parse-charset)))
       bits)
      (t
       (let ((encoding (or encoding