]> code.delx.au - gnu-emacs/commitdiff
mm-decode.el (mm-dissect-buffer): Add a default content-disposition in mm handle...
authorDaniel Dehennin <daniel.dehennin@baby-gnu.org>
Fri, 29 Jul 2011 09:29:35 +0000 (09:29 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 29 Jul 2011 09:29:35 +0000 (09:29 +0000)
lisp/gnus/ChangeLog
lisp/gnus/mm-decode.el

index f90e180b128f7bae8c62022fc7e34b39f9097dd3..acdd10339331f6dc5694efbf37769f2c6e741354 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-29  Daniel Dehennin  <daniel.dehennin@baby-gnu.org>
+
+       * mm-decode.el (mm-dissect-buffer): Add a default content-disposition
+       in mm handle if none is specified.
+
 2011-07-24  Andrew Cohen  <cohen@andy.bu.edu>
 
        * nnimap.el (nnimap-make-thread-query): Quote message-ids for gmail.
index a51c6630ac510cab732b8f22e2c9a83365ca64c1..692175d471fc4d11596f5ba52d0118bb782cc777 100644 (file)
@@ -564,7 +564,13 @@ Postpone undisplaying of viewers for types in
          (setq ct (mail-fetch-field "content-type")
                ctl (and ct (mail-header-parse-content-type ct))
                cte (mail-fetch-field "content-transfer-encoding")
-               cd (mail-fetch-field "content-disposition")
+                cd (or (mail-fetch-field "content-disposition")
+                       (when (and ctl
+                                  (eq 'mm-inline-text
+                                      (cadr (mm-assoc-string-match
+                                             mm-inline-media-tests
+                                             (car ctl)))))
+                         "inline"))
                ;; Newlines in description should be stripped so as
                ;; not to break the MIME tag into two or more lines.
                description (message-fetch-field "content-description")