From: Dave Love Date: Mon, 8 Jan 2001 19:47:32 +0000 (+0000) Subject: (mm-qp-or-base64): Don't base64 for the sake of a X-Git-Tag: emacs-pretest-21.0.95~39 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1745293420ee990e8e604b714b71ad2cac746c8f;p=emacs.git (mm-qp-or-base64): Don't base64 for the sake of a single character. --- diff --git a/lisp/gnus/mm-encode.el b/lisp/gnus/mm-encode.el index c2dee51ce51..65fc34acfd7 100644 --- a/lisp/gnus/mm-encode.el +++ b/lisp/gnus/mm-encode.el @@ -162,7 +162,10 @@ The encoding used is returned." (incf n8bit) (forward-char 1) (skip-chars-forward "\x20-\x7f\r\n\t" limit)) - (if (< (* 6 n8bit) (- limit (point-min))) + (if (or (< (* 6 n8bit) (- limit (point-min))) + ;; Don't base64, say, a short line with a single + ;; non-ASCII char when splitting parts by charset. + (= n8bit 1)) 'quoted-printable 'base64))))