diff options
| author | Stefan Monnier | 2010-01-22 11:43:54 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2010-01-22 11:43:54 -0500 |
| commit | c893016b07f33eb8d56e1011245fe59a67cb4ee0 (patch) | |
| tree | 8e00fe18bf610d186ce51caee9a0efb646a786aa | |
| parent | 9425f8e1b3b40adc297376007992cb680ef5e0ec (diff) | |
| download | emacs-c893016b07f33eb8d56e1011245fe59a67cb4ee0.tar.gz emacs-c893016b07f33eb8d56e1011245fe59a67cb4ee0.zip | |
* mail/rmailmm.el (rmail-mime-handle): Don't set the buffer to unibyte
just because we see "encoding: 8bit".
* mail/rmail.el (rmail-show-message-1): Decode the body's QP into bytes.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/mail/mail-utils.el | 2 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 3 | ||||
| -rw-r--r-- | lisp/mail/rmailmm.el | 5 |
4 files changed, 14 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ab76ac74d5e..c59ecbae67b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-01-22 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * mail/rmailmm.el (rmail-mime-handle): Don't set the buffer to unibyte | ||
| 4 | just because we see "encoding: 8bit". | ||
| 5 | * mail/rmail.el (rmail-show-message-1): Decode the body's QP into bytes. | ||
| 6 | |||
| 1 | 2010-01-22 Chong Yidong <cyd@stupidchicken.com> | 7 | 2010-01-22 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 8 | ||
| 3 | * isearch.el (isearch-allow-scroll): Doc fix (Bug#5446). | 9 | * isearch.el (isearch-allow-scroll): Doc fix (Bug#5446). |
diff --git a/lisp/mail/mail-utils.el b/lisp/mail/mail-utils.el index 3bca0b23a8c..5fad3554ae5 100644 --- a/lisp/mail/mail-utils.el +++ b/lisp/mail/mail-utils.el | |||
| @@ -133,6 +133,8 @@ If NOERROR is non-nil, return t if successful. | |||
| 133 | If UNIBYTE is non-nil, insert converted characters as unibyte. | 133 | If UNIBYTE is non-nil, insert converted characters as unibyte. |
| 134 | That is useful if you are going to character code decoding afterward, | 134 | That is useful if you are going to character code decoding afterward, |
| 135 | as Rmail does." | 135 | as Rmail does." |
| 136 | ;; FIXME: `unibyte' should always be non-nil, and the iso-latin-1 | ||
| 137 | ;; specific handling should be removed (or moved elsewhere and generalized). | ||
| 136 | (interactive "r\nP") | 138 | (interactive "r\nP") |
| 137 | (let (failed) | 139 | (let (failed) |
| 138 | (save-match-data | 140 | (save-match-data |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 67ea3fdc158..20a03ede965 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -2727,7 +2727,8 @@ 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 | (mail-unquote-printable-region (point-min) (point-max) |
| 2731 | nil nil 'unibyte)) | ||
| 2731 | ((and (string= character-coding "base64") is-text-message) | 2732 | ((and (string= character-coding "base64") is-text-message) |
| 2732 | (base64-decode-region (point-min) (point-max))) | 2733 | (base64-decode-region (point-min) (point-max))) |
| 2733 | ((eq character-coding 'uuencode) | 2734 | ((eq character-coding 'uuencode) |
diff --git a/lisp/mail/rmailmm.el b/lisp/mail/rmailmm.el index e87f72a2e47..415bc20cf50 100644 --- a/lisp/mail/rmailmm.el +++ b/lisp/mail/rmailmm.el | |||
| @@ -361,7 +361,10 @@ The parsed header value: | |||
| 361 | (setq content-transfer-encoding nil)) | 361 | (setq content-transfer-encoding nil)) |
| 362 | ((string= content-transfer-encoding "8bit") | 362 | ((string= content-transfer-encoding "8bit") |
| 363 | ;; FIXME: Is this the correct way? | 363 | ;; FIXME: Is this the correct way? |
| 364 | (set-buffer-multibyte nil))) | 364 | ;; No, of course not, it just means there's no decoding to do. |
| 365 | ;; (set-buffer-multibyte nil) | ||
| 366 | (setq content-transfer-encoding nil) | ||
| 367 | )) | ||
| 365 | ;; Inline stuff requires work. Attachments are handled by the bulk | 368 | ;; Inline stuff requires work. Attachments are handled by the bulk |
| 366 | ;; handler. | 369 | ;; handler. |
| 367 | (if (string= "inline" (car content-disposition)) | 370 | (if (string= "inline" (car content-disposition)) |