* mm-encode.el (mm-encode-buffer): Don't use 7bit encoding if
there are long lines.
+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.
2001-07-24 Katsumi Yamaoka <yamaoka@jpl.org>
* dgnushack.el (copy-list): New compiler macro.
(bits (mm-body-7-or-8)))
;; We force buffers that are 7bit to be unencoded, no matter
;; what the preferred encoding is.
(bits (mm-body-7-or-8)))
;; We force buffers that are 7bit to be unencoded, no matter
;; what the preferred encoding is.
+ ;; 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))
(setq encoding bits))
(mm-encode-content-transfer-encoding encoding mime-type)
encoding))