From: Chris Hanson Date: Fri, 19 May 2000 03:20:46 +0000 (+0000) Subject: Implement MESSAGE->STRING. X-Git-Tag: 20090517-FFI~3807 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=5d9dae0af1bed95f8b5e2456a34c24d741f139bc;p=mit-scheme.git Implement MESSAGE->STRING. --- diff --git a/v7/src/imail/imail-core.scm b/v7/src/imail/imail-core.scm index ceb4c1046..36022a888 100644 --- a/v7/src/imail/imail-core.scm +++ b/v7/src/imail/imail-core.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: imail-core.scm,v 1.71 2000/05/18 19:59:36 cph Exp $ +;;; $Id: imail-core.scm,v 1.72 2000/05/19 03:20:46 cph Exp $ ;;; ;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology ;;; @@ -365,6 +365,11 @@ (define (detach-message! message) (set-message-folder! message #f)) + +(define (message->string message) + (string-append (header-fields->string (message-header-fields message)) + "\n" + (message-body message))) (define-generic message-internal-time (message)) (define-method message-internal-time ((message ))