[gnus git] branch master updated: n0-17-203-g0602c5d =1= mm-decode: add a default content-disposition in mm handle if none is specified

Julien Danjou <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  0602c5d425fc3a02601e9d6e74b453caafda49b4 (commit)
      from  bb86854aadfc89dfd7889c580bac5e2951bd268e (commit)


- Log -----------------------------------------------------------------
commit 0602c5d425fc3a02601e9d6e74b453caafda49b4
Author: Julien Danjou <[email protected]>
Date:   Fri Jul 29 10:39:44 2011 +0200

    mm-decode: add a default content-disposition in mm handle if none is specified
    
    Signed-off-by: Julien Danjou <[email protected]>

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index afdfb10..4a7576c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-29  Daniel Dehennin  <[email protected]>
+
+	* mm-decode.el (mm-dissect-buffer): Add a default content-disposition
+	in mm handle if none is specified.
+
 2011-07-24  Andrew Cohen  <[email protected]>
 
 	* nnimap.el (nnimap-make-thread-query): Quote message-ids for gmail.
diff --git a/lisp/mm-decode.el b/lisp/mm-decode.el
index a51c663..692175d 100644
--- a/lisp/mm-decode.el
+++ b/lisp/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")

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog    |    5 +++++
 lisp/mm-decode.el |    8 +++++++-
 2 files changed, 12 insertions(+), 1 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.