diff options
| author | Kenichi Handa | 2011-01-04 16:09:46 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2011-01-04 16:09:46 +0900 |
| commit | 8434f239248db31bbf181b5312d1d239e4edea2f (patch) | |
| tree | bde89c77622705595e0fa278d84fa34378c3288e /lisp | |
| parent | 0ad254447b7542284a2eb3c63b0732edb9409af7 (diff) | |
| download | emacs-8434f239248db31bbf181b5312d1d239e4edea2f.tar.gz emacs-8434f239248db31bbf181b5312d1d239e4edea2f.zip | |
Fix handling of unknown MIME type (bug#7651).
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/mail/rmailmm.el | 10 |
2 files changed, 15 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 504ebf59708..4f0a789ae33 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2011-01-04 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * mail/rmailmm.el (rmail-mime-insert-bulk): Display an unknown | ||
| 4 | part as a plain text. | ||
| 5 | (rmail-mime-process-multipart): Set the default content-type to | ||
| 6 | nil for unknown multipart subtypes (bug#7651). | ||
| 7 | |||
| 1 | 2011-01-03 Brent Goodrick <bgoodr@gmail.com> (tiny change) | 8 | 2011-01-03 Brent Goodrick <bgoodr@gmail.com> (tiny change) |
| 2 | 9 | ||
| 3 | * abbrev.el (prepare-abbrev-list-buffer): If listing local abbrev | 10 | * abbrev.el (prepare-abbrev-list-buffer): If listing local abbrev |
diff --git a/lisp/mail/rmailmm.el b/lisp/mail/rmailmm.el index f6741023e64..a5d5bc149d9 100644 --- a/lisp/mail/rmailmm.el +++ b/lisp/mail/rmailmm.el | |||
| @@ -741,7 +741,11 @@ directly." | |||
| 741 | (cond ((eq (cdr bulk-data) 'text) | 741 | (cond ((eq (cdr bulk-data) 'text) |
| 742 | (rmail-mime-insert-decoded-text entity)) | 742 | (rmail-mime-insert-decoded-text entity)) |
| 743 | ((cdr bulk-data) | 743 | ((cdr bulk-data) |
| 744 | (rmail-mime-insert-image entity))))) | 744 | (rmail-mime-insert-image entity)) |
| 745 | (t | ||
| 746 | ;; As we don't know how to display the body, just | ||
| 747 | ;; insert it as a text. | ||
| 748 | (rmail-mime-insert-decoded-text entity))))) | ||
| 745 | (put-text-property beg (point) 'rmail-mime-entity entity))) | 749 | (put-text-property beg (point) 'rmail-mime-entity entity))) |
| 746 | 750 | ||
| 747 | (defun test-rmail-mime-bulk-handler () | 751 | (defun test-rmail-mime-bulk-handler () |
| @@ -819,7 +823,9 @@ The other arguments are the same as `rmail-mime-multipart-handler'." | |||
| 819 | (cond ((string-match "mixed" subtype) | 823 | (cond ((string-match "mixed" subtype) |
| 820 | (setq content-type '("text/plain"))) | 824 | (setq content-type '("text/plain"))) |
| 821 | ((string-match "digest" subtype) | 825 | ((string-match "digest" subtype) |
| 822 | (setq content-type '("message/rfc822")))) | 826 | (setq content-type '("message/rfc822"))) |
| 827 | (t | ||
| 828 | (setq content-type nil))) | ||
| 823 | 829 | ||
| 824 | ;; Loop over all body parts, where beg points at the beginning of | 830 | ;; Loop over all body parts, where beg points at the beginning of |
| 825 | ;; the part and end points at the end of the part. next points at | 831 | ;; the part and end points at the end of the part. next points at |