diff options
| author | Dave Love | 2001-01-08 19:47:32 +0000 |
|---|---|---|
| committer | Dave Love | 2001-01-08 19:47:32 +0000 |
| commit | 1745293420ee990e8e604b714b71ad2cac746c8f (patch) | |
| tree | 2e54d8c610e8d3f2b733f6e5735c7b9b1f9366d6 | |
| parent | 98e61bd1c6ff61a28b2c552eb40e52b55f761cc1 (diff) | |
| download | emacs-1745293420ee990e8e604b714b71ad2cac746c8f.tar.gz emacs-1745293420ee990e8e604b714b71ad2cac746c8f.zip | |
(mm-qp-or-base64): Don't base64 for the sake of a
single character.
| -rw-r--r-- | lisp/gnus/mm-encode.el | 5 |
1 files changed, 4 insertions, 1 deletions
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." | |||
| 162 | (incf n8bit) | 162 | (incf n8bit) |
| 163 | (forward-char 1) | 163 | (forward-char 1) |
| 164 | (skip-chars-forward "\x20-\x7f\r\n\t" limit)) | 164 | (skip-chars-forward "\x20-\x7f\r\n\t" limit)) |
| 165 | (if (< (* 6 n8bit) (- limit (point-min))) | 165 | (if (or (< (* 6 n8bit) (- limit (point-min))) |
| 166 | ;; Don't base64, say, a short line with a single | ||
| 167 | ;; non-ASCII char when splitting parts by charset. | ||
| 168 | (= n8bit 1)) | ||
| 166 | 'quoted-printable | 169 | 'quoted-printable |
| 167 | 'base64)))) | 170 | 'base64)))) |
| 168 | 171 | ||