From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mike Kupfer Newsgroups: gmane.emacs.devel Subject: [PATCH] MH-E: don't automatically download external-body parts Date: Sat, 18 Nov 2017 16:58:18 -0800 Message-ID: <15671.1511053098@alto> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1511053142 8309 195.159.176.226 (19 Nov 2017 00:59:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 19 Nov 2017 00:59:02 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 19 01:58:58 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGDwo-0001sc-3n for ged-emacs-devel@m.gmane.org; Sun, 19 Nov 2017 01:58:58 +0100 Original-Received: from localhost ([::1]:51546 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGDwv-00067W-IZ for ged-emacs-devel@m.gmane.org; Sat, 18 Nov 2017 19:59:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGDwJ-00067M-9d for emacs-devel@gnu.org; Sat, 18 Nov 2017 19:58:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGDwG-0002QN-72 for emacs-devel@gnu.org; Sat, 18 Nov 2017 19:58:27 -0500 Original-Received: from shell1.rawbw.com ([198.144.192.42]:53580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGDwF-0002Q8-Sb for emacs-devel@gnu.org; Sat, 18 Nov 2017 19:58:24 -0500 Original-Received: from alto (m208-249.dsl.rawbw.com [198.144.208.249]) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTP id vAJ0wIkI071146 for ; Sat, 18 Nov 2017 16:58:20 -0800 (PST) (envelope-from mkupfer@alum.berkeley.edu) X-Authentication-Warning: shell1.rawbw.com: Host m208-249.dsl.rawbw.com [198.144.208.249] claimed to be alto X-Mailer: MH-E 8.6+git; nmh 1.7-RC3; GNU Emacs 26.0.90 X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 198.144.192.42 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:220271 Archived-At: --=-=-= Content-Type: text/plain Is the attached okay for emacs-26, or should it go to master? It makes MH-E behave more like Gnus when displaying a message that has a MIME external-body part. regards, mike --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=0001-MH-E-don-t-automatically-download-external-body-part.patch Content-Description: git formatted patch >From 4c8fcd7115c7eb6203f8bce0e2787d7fd2a08929 Mon Sep 17 00:00:00 2001 From: Mike Kupfer Date: Sat, 18 Nov 2017 16:49:10 -0800 Subject: [PATCH] MH-E: don't automatically download external-body parts * lisp/mh-e/mh-mime.el (mh-mime-display-single): Use mm-automatic-display-p to verify that a part should be displayed before doing the inline checks (SF#475). --- lisp/mh-e/mh-mime.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/mh-e/mh-mime.el b/lisp/mh-e/mh-mime.el index 9d1edf0..69c57e0 100644 --- a/lisp/mh-e/mh-mime.el +++ b/lisp/mh-e/mh-mime.el @@ -659,6 +659,7 @@ mh-mime-display-single (attachmentp (equal (car (mm-handle-disposition handle)) "attachment")) (inlinep (and (equal (car (mm-handle-disposition handle)) "inline") + (mm-automatic-display-p handle) (mm-inlinable-p handle) (mm-inlined-p handle))) (displayp (or inlinep ; show if inline OR @@ -669,6 +670,7 @@ mh-mime-display-single (and (not (equal (mm-handle-media-supertype handle) "image")) + (mm-automatic-display-p handle) (mm-inlinable-p handle) (mm-inlined-p handle))))))) (save-restriction -- 2.1.4 --=-=-=--