From: Mike Kupfer <mkupfer@alum.berkeley.edu>
To: emacs-devel@gnu.org
Subject: [PATCH] MH-E: don't automatically download external-body parts
Date: Sat, 18 Nov 2017 16:58:18 -0800 [thread overview]
Message-ID: <15671.1511053098@alto> (raw)
[-- Attachment #1: Type: text/plain, Size: 177 bytes --]
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
[-- Attachment #2: git formatted patch --]
[-- Type: text/plain, Size: 1508 bytes --]
From 4c8fcd7115c7eb6203f8bce0e2787d7fd2a08929 Mon Sep 17 00:00:00 2001
From: Mike Kupfer <mkupfer@alum.berkeley.edu>
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
next reply other threads:[~2017-11-19 0:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-19 0:58 Mike Kupfer [this message]
2017-11-19 15:36 ` [PATCH] MH-E: don't automatically download external-body parts Eli Zaretskii
2017-11-19 16:07 ` Mike Kupfer
2017-11-19 16:19 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15671.1511053098@alto \
--to=mkupfer@alum.berkeley.edu \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).