From: Daniel Dehennin Date: Fri, 29 Jul 2011 09:29:35 +0000 (+0000) Subject: mm-decode.el (mm-dissect-buffer): Add a default content-disposition in mm handle... X-Git-Tag: emacs-pretest-24.0.90~104^2~157^2~1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c843522682b69319814ad5884bb5d7378e4f6bf0;p=emacs.git mm-decode.el (mm-dissect-buffer): Add a default content-disposition in mm handle if none is specified. --- diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index f90e180b128..acdd1033933 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,8 @@ +2011-07-29 Daniel Dehennin + + * mm-decode.el (mm-dissect-buffer): Add a default content-disposition + in mm handle if none is specified. + 2011-07-24 Andrew Cohen * nnimap.el (nnimap-make-thread-query): Quote message-ids for gmail. diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el index a51c6630ac5..692175d471f 100644 --- a/lisp/gnus/mm-decode.el +++ b/lisp/gnus/mm-decode.el @@ -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")