Commit a03ae20d authored by Glenn Morris's avatar Glenn Morris
Browse files

* mail/rmail.el (rmail-show-message-1): Handle malformed

quoted-printable text.  (Bug#5441)
parent 4d01b827
2010-02-04 Glenn Morris <rgm@gnu.org>
* mail/rmail.el (rmail-show-message-1): Handle malformed
quoted-printable text. (Bug#5441)
* mail/mail-utils.el (mail-unquote-printable-region): Doc fix.
* simple.el (visual-line-mode): Capitalize lighter.
......
......@@ -2727,8 +2727,10 @@ The current mail message becomes the message displayed."
(insert-buffer-substring mbox-buf body-start end)
(cond
((string= character-coding "quoted-printable")
(mail-unquote-printable-region (point-min) (point-max)
nil nil 'unibyte))
;; See bug#5441.
(or (mail-unquote-printable-region (point-min) (point-max)
nil t 'unibyte)
(message "Malformed MIME quoted-printable message")))
((and (string= character-coding "base64") is-text-message)
(base64-decode-region (point-min) (point-max)))
((eq character-coding 'uuencode)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment