Don't inline text/plain entities that have disposition ATTACHMENT.
authorChris Hanson <org/chris-hanson/cph>
Fri, 30 Jun 2000 19:11:46 +0000 (19:11 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 30 Jun 2000 19:11:46 +0000 (19:11 +0000)
v7/src/imail/imail-top.scm

index 0a9fa271eee799015da314d523e4496da47f57ae..a3f8537f7c302c2b04e8cccacfd585abcc0713bc 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;; $Id: imail-top.scm,v 1.203 2000/06/30 18:31:31 cph Exp $
+;;; $Id: imail-top.scm,v 1.204 2000/06/30 19:11:46 cph Exp $
 ;;;
 ;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
 ;;;
@@ -2145,13 +2145,13 @@ Negative argument means search in reverse."
     (message (body <mime-body-text>) selector context mark)
   (if (and (or (not (insert-mime-context-enclosure context))
               (let ((disposition (mime-body-disposition body)))
-                (and disposition
-                     (eq? (car disposition) 'INLINE)))
-              (let ((subtype (mime-body-subtype body)))
-                (or (eq? subtype 'PLAIN)
-                    (memq subtype
-                          (ref-variable imail-inline-mime-text-subtypes
-                                        mark)))))
+                (if disposition
+                    (eq? (car disposition) 'INLINE)
+                    (let ((subtype (mime-body-subtype body)))
+                      (or (eq? subtype 'PLAIN)
+                          (memq subtype
+                                (ref-variable imail-inline-mime-text-subtypes
+                                              mark)))))))
           (known-mime-encoding? (mime-part-encoding context body))
           (re-string-match
            (string-append "\\`"