From 9fc614bf990f18700ba8e568833d0a9b555b71b5 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 2 Jun 2000 17:24:52 +0000 Subject: [PATCH] Add MIME-BODY-PARAMETER. --- v7/src/imail/imail-core.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/v7/src/imail/imail-core.scm b/v7/src/imail/imail-core.scm index 43c595930..c012676fa 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.94 2000/06/02 02:41:26 cph Exp $ +;;; $Id: imail-core.scm,v 1.95 2000/06/02 17:24:52 cph Exp $ ;;; ;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology ;;; @@ -818,6 +818,12 @@ (define-generic mime-body-type (body)) (define-generic mime-body-subtype (body)) +(define (mime-body-parameter body key default) + (let ((entry (assq key (mime-body-parameters body)))) + (if entry + (cdr entry) + default))) + (define-method write-instance ((body ) port) (write-instance-helper 'MIME-BODY body port (lambda () -- 2.25.1