[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] MH-E: don't automatically download external-body parts
From: |
Mike Kupfer |
Subject: |
[PATCH] MH-E: don't automatically download external-body parts |
Date: |
Sat, 18 Nov 2017 16:58:18 -0800 |
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
>From 4c8fcd7115c7eb6203f8bce0e2787d7fd2a08929 Mon Sep 17 00:00:00 2001
From: Mike Kupfer <address@hidden>
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
- [PATCH] MH-E: don't automatically download external-body parts,
Mike Kupfer <=