From f4d61c0b7c5df7201aed4702966e213cae10d091 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 2 Jun 2000 02:41:26 +0000 Subject: [PATCH] Print out instances in more intelligible form. --- v7/src/imail/imail-core.scm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/v7/src/imail/imail-core.scm b/v7/src/imail/imail-core.scm index 48be09e20..43c595930 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.93 2000/06/01 18:46:44 cph Exp $ +;;; $Id: imail-core.scm,v 1.94 2000/06/02 02:41:26 cph Exp $ ;;; ;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology ;;; @@ -818,6 +818,14 @@ (define-generic mime-body-type (body)) (define-generic mime-body-subtype (body)) +(define-method write-instance ((body ) port) + (write-instance-helper 'MIME-BODY body port + (lambda () + (write-char #\space port) + (write (mime-body-type body) port) + (write-char #\/ port) + (write (mime-body-subtype body) port)))) + (define-class () (id define accessor) (description define accessor) @@ -861,7 +869,7 @@ (parts define accessor)) (define-method mime-body-type ((body )) body 'MULTIPART) - + (define-class ( (constructor (date subject from sender reply-to to cc bcc in-reply-to message-id))) -- 2.25.1