]> git.eshelyaron.com Git - emacs.git/commitdiff
mm-uu.el: Don't dissect patch part
authorKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 13 Jan 2017 07:22:30 +0000 (07:22 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 13 Jan 2017 07:22:30 +0000 (07:22 +0000)
This fixes a bug that the patch part is broken in the article
<87inpjzhpb.fsf@users.sourceforge.net> in the bug-gnu-emacs list.

* lisp/gnus/mm-uu.el (mm-uu-dissect-text-parts):
Don't dissect patch part.

lisp/gnus/mm-uu.el

index 18322ecb4d1ebaed2b13ce5c392c214865a69623..3455cc423d92364f8204f14302fd4093c706b8eb 100644 (file)
@@ -711,6 +711,8 @@ Assume text has been decoded if DECODED is non-nil."
                    ;; Mutt still uses application/pgp even though
                    ;; it has already been withdrawn.
                    (string-match "\\`text/\\|\\`application/pgp\\'" type)
+                   (not
+                    (string-match "\\`text/x-\\(?:diff\\|patch\\)\\'" type))
                     (equal (car (mm-handle-disposition handle))
                            "inline")
                    (setq