Add MESSAGE->STRING.
authorChris Hanson <org/chris-hanson/cph>
Fri, 21 Jan 2000 20:21:47 +0000 (20:21 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 21 Jan 2000 20:21:47 +0000 (20:21 +0000)
v7/src/imail/imail-core.scm

index 19cf1b28297dfb3b2f61bde512c74a5bb7d4be9d..8ec2fc36bffc3cc3ab3d860cb4e1078dc80c35a0 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;; $Id: imail-core.scm,v 1.18 2000/01/20 17:46:52 cph Exp $
+;;; $Id: imail-core.scm,v 1.19 2000/01/21 20:21:47 cph Exp $
 ;;;
 ;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
 ;;;
          (or (header-field->message-flags header)
              (header-field->message-property header))))
       headers))
+
+(define (message->string message)
+  (string-append (header-fields->string (header-fields message))
+                "\n"
+                (message-body message)))
 \f
 ;;;; Message Navigation