2001-07-24 12:00:00 ShengHuo ZHU <zsh@cs.rochester.edu>
authorShengHuo ZHU <zsh@cs.rochester.edu>
Tue, 24 Jul 2001 19:57:45 +0000 (19:57 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Tue, 24 Jul 2001 19:57:45 +0000 (19:57 +0000)
* mm-encode.el (mm-encode-buffer): Don't use 7bit encoding if
there are long lines.

lisp/ChangeLog
lisp/mm-encode.el

index 090a5c2..95d5023 100644 (file)
@@ -1,3 +1,8 @@
+2001-07-24 12:00:00  ShengHuo ZHU  <zsh@cs.rochester.edu>
+
+       * mm-encode.el (mm-encode-buffer): Don't use 7bit encoding if
+       there are long lines.
+
 2001-07-24  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * dgnushack.el (copy-list): New compiler macro.
index 91e7f33..43510d4 100644 (file)
@@ -119,7 +119,8 @@ The encoding used is returned."
         (bits (mm-body-7-or-8)))
     ;; We force buffers that are 7bit to be unencoded, no matter
     ;; what the preferred encoding is.
-    (when (eq bits '7bit)
+    ;; Only if the buffers don't contain lone lines.
+    (when (and (eq bits '7bit) (not (mm-long-lines-p 76)))
       (setq encoding bits))
     (mm-encode-content-transfer-encoding encoding mime-type)
     encoding))