#| -*-Scheme-*-
-$Id: imail-core.scm,v 1.152 2005/12/10 06:45:32 riastradh Exp $
+$Id: imail-core.scm,v 1.153 2005/12/16 02:04:59 riastradh Exp $
Copyright 1999,2000,2001,2003,2005 Massachusetts Institute of Technology
(define-generic disconnect-folder (folder))
-;; -------------------------------------------------------------------
-;; Return #T if FOLDER supports MIME parsing.
-
-(define-generic folder-supports-mime? (folder))
-
;; -------------------------------------------------------------------
;; Preload outline information about each message in the folder.
;; Normally used prior to generating a folder summary, to accelerate
#| -*-Scheme-*-
-$Id: imail-file.scm,v 1.86 2005/12/10 06:45:32 riastradh Exp $
+$Id: imail-file.scm,v 1.87 2005/12/16 02:04:59 riastradh Exp $
Copyright 1999,2000,2001,2002,2003,2005 Massachusetts Institute of Technology
folder
unspecific)
-; (define-method folder-supports-mime? ((folder <file-folder>))
-; folder
-; #f)
-
(define-method preload-folder-outlines ((folder <file-folder>))
folder
unspecific)
#| -*-Scheme-*-
-$Id: imail-imap.scm,v 1.205 2005/10/26 21:44:43 cph Exp $
+$Id: imail-imap.scm,v 1.206 2005/12/16 02:04:59 riastradh Exp $
Copyright 1999,2000,2001,2003,2004,2005 Massachusetts Institute of Technology
(define-method disconnect-folder ((folder <imap-folder>))
(close-resource folder #t))
-
-(define-method folder-supports-mime? ((folder <imap-folder>))
- folder
- #t)
\f
;;;; Container operations
#| -*-Scheme-*-
-$Id: imail-mime.scm,v 1.2 2005/12/13 01:41:39 cph Exp $
+$Id: imail-mime.scm,v 1.3 2005/12/16 02:04:59 riastradh Exp $
Copyright 2005 Taylor Campbell
(declare (usual-integrations))
\f
-(define-method folder-supports-mime? ((folder <folder>))
- folder
- #t)
-
(define-method mime-message-body-structure ((message <message>))
(or (get-property message 'MIME-MESSAGE-BODY-STRUCTURE #f)
(cond ((mime:get-version-header message)
#| -*-Scheme-*-
-$Id: imail-top.scm,v 1.293 2005/12/10 06:45:32 riastradh Exp $
+$Id: imail-top.scm,v 1.294 2005/12/16 02:04:59 riastradh Exp $
Copyright 1999,2000,2001,2002,2003,2004 Massachusetts Institute of Technology
Copyright 2005 Massachusetts Institute of Technology
(insert-header-fields message (and raw? (not (eq? raw? 'BODY-ONLY))) mark)
(cond ((and raw? (not (eq? raw? 'HEADERS-ONLY)))
(insert-message-body message mark))
- ((folder-supports-mime? (message-folder message))
- (insert-mime-message-body message mark inline-only? left-margin))
+ ((mime-message-body-structure message)
+ => (lambda (body-structure)
+ (insert-mime-message-body message body-structure
+ mark inline-only? left-margin)))
(else
(call-with-auto-wrapped-output-mark mark left-margin message
(lambda (port)
\f
;;;; MIME message formatting
-(define (insert-mime-message-body message mark inline-only? left-margin)
+(define (insert-mime-message-body message body-structure
+ mark inline-only? left-margin)
(walk-mime-message-part
message
- (mime-message-body-structure message)
+ body-structure
'()
(make-walk-mime-context inline-only? left-margin #f '())
mark))