]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix handling of unknown MIME type (bug#7651).
authorKenichi Handa <handa@m17n.org>
Tue, 4 Jan 2011 07:09:46 +0000 (16:09 +0900)
committerKenichi Handa <handa@m17n.org>
Tue, 4 Jan 2011 07:09:46 +0000 (16:09 +0900)
lisp/ChangeLog
lisp/mail/rmailmm.el

index 504ebf5970801883097b3d730f570879cf9b6dac..4f0a789ae336d22c87314f1892da154b843a12ff 100644 (file)
@@ -1,3 +1,10 @@
+2011-01-04  Kenichi Handa  <handa@m17n.org>
+
+       * mail/rmailmm.el (rmail-mime-insert-bulk): Display an unknown
+       part as a plain text.
+       (rmail-mime-process-multipart): Set the default content-type to
+       nil for unknown multipart subtypes (bug#7651).
+
 2011-01-03  Brent Goodrick  <bgoodr@gmail.com>  (tiny change)
 
        * abbrev.el (prepare-abbrev-list-buffer): If listing local abbrev
index f6741023e64b187281ec8ea4c51c9db12de044d8..a5d5bc149d97bf90bad15751c287c8061e837a84 100644 (file)
@@ -741,7 +741,11 @@ directly."
          (cond ((eq (cdr bulk-data) 'text)
                 (rmail-mime-insert-decoded-text entity))
                ((cdr bulk-data)
-                (rmail-mime-insert-image entity)))))
+                (rmail-mime-insert-image entity))
+               (t
+                ;; As we don't know how to display the body, just
+                ;; insert it as a text.
+                (rmail-mime-insert-decoded-text entity)))))
     (put-text-property beg (point) 'rmail-mime-entity entity)))
 
 (defun test-rmail-mime-bulk-handler ()
@@ -819,7 +823,9 @@ The other arguments are the same as `rmail-mime-multipart-handler'."
     (cond ((string-match "mixed" subtype)
           (setq content-type '("text/plain")))
          ((string-match "digest" subtype)
-          (setq content-type '("message/rfc822"))))
+          (setq content-type '("message/rfc822")))
+         (t
+          (setq content-type nil)))
 
     ;; Loop over all body parts, where beg points at the beginning of
     ;; the part and end points at the end of the part.  next points at