From 5d9dae0af1bed95f8b5e2456a34c24d741f139bc Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 19 May 2000 03:20:46 +0000 Subject: [PATCH] Implement MESSAGE->STRING. --- v7/src/imail/imail-core.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 )) -- 2.25.1