]> git.eshelyaron.com Git - emacs.git/commitdiff
MH-E: don't automatically download external-body parts
authorMike Kupfer <mkupfer@alum.berkeley.edu>
Sun, 19 Nov 2017 00:49:10 +0000 (16:49 -0800)
committerMike Kupfer <mkupfer@alum.berkeley.edu>
Sun, 19 Nov 2017 18:34:58 +0000 (10:34 -0800)
* 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

index 9d1edf0fc47d8c452d836536fbf7f73d7c7e9703..69c57e0afdc8b152153427730179c66ba090a38d 100644 (file)
@@ -659,6 +659,7 @@ buttons for alternative parts that are usually suppressed."
          (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 @@ buttons for alternative parts that are usually suppressed."
                                 (and (not (equal
                                            (mm-handle-media-supertype handle)
                                            "image"))
+                                     (mm-automatic-display-p handle)
                                      (mm-inlinable-p handle)
                                      (mm-inlined-p handle)))))))
     (save-restriction