diff options
| author | Glenn Morris | 2010-02-03 21:10:21 -0800 |
|---|---|---|
| committer | Glenn Morris | 2010-02-03 21:10:21 -0800 |
| commit | a03ae20dc626510a7e05d5dd8cb7e853d70f2b49 (patch) | |
| tree | 8219a71906a12daf1f60691703b17bcdfdd9d234 /lisp | |
| parent | 4d01b827454d0080824ab3f61eace0032d17cec4 (diff) | |
| download | emacs-a03ae20dc626510a7e05d5dd8cb7e853d70f2b49.tar.gz emacs-a03ae20dc626510a7e05d5dd8cb7e853d70f2b49.zip | |
* mail/rmail.el (rmail-show-message-1): Handle malformed
quoted-printable text. (Bug#5441)
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index dbd40d088e8..f81a3d16913 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2010-02-04 Glenn Morris <rgm@gnu.org> | 1 | 2010-02-04 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * mail/rmail.el (rmail-show-message-1): Handle malformed | ||
| 4 | quoted-printable text. (Bug#5441) | ||
| 5 | |||
| 3 | * mail/mail-utils.el (mail-unquote-printable-region): Doc fix. | 6 | * mail/mail-utils.el (mail-unquote-printable-region): Doc fix. |
| 4 | 7 | ||
| 5 | * simple.el (visual-line-mode): Capitalize lighter. | 8 | * simple.el (visual-line-mode): Capitalize lighter. |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 1dbfceb315b..a737b99c29e 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -2727,8 +2727,10 @@ The current mail message becomes the message displayed." | |||
| 2727 | (insert-buffer-substring mbox-buf body-start end) | 2727 | (insert-buffer-substring mbox-buf body-start end) |
| 2728 | (cond | 2728 | (cond |
| 2729 | ((string= character-coding "quoted-printable") | 2729 | ((string= character-coding "quoted-printable") |
| 2730 | (mail-unquote-printable-region (point-min) (point-max) | 2730 | ;; See bug#5441. |
| 2731 | nil nil 'unibyte)) | 2731 | (or (mail-unquote-printable-region (point-min) (point-max) |
| 2732 | nil t 'unibyte) | ||
| 2733 | (message "Malformed MIME quoted-printable message"))) | ||
| 2732 | ((and (string= character-coding "base64") is-text-message) | 2734 | ((and (string= character-coding "base64") is-text-message) |
| 2733 | (base64-decode-region (point-min) (point-max))) | 2735 | (base64-decode-region (point-min) (point-max))) |
| 2734 | ((eq character-coding 'uuencode) | 2736 | ((eq character-coding 'uuencode) |