From dd80ee695cac629792f5b230496a9f9ea2f600a5 Mon Sep 17 00:00:00 2001 From: Katsumi Yamaoka Date: Fri, 13 Jan 2017 07:22:30 +0000 Subject: [PATCH] mm-uu.el: Don't dissect patch part 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/gnus/mm-uu.el b/lisp/gnus/mm-uu.el index 18322ecb4d1..3455cc423d9 100644 --- a/lisp/gnus/mm-uu.el +++ b/lisp/gnus/mm-uu.el @@ -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 -- 2.11.4.GIT