From: Chris Hanson Date: Fri, 2 Jun 2000 17:24:52 +0000 (+0000) Subject: Add MIME-BODY-PARAMETER. X-Git-Tag: 20090517-FFI~3628 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=9fc614bf990f18700ba8e568833d0a9b555b71b5;p=mit-scheme.git Add MIME-BODY-PARAMETER. --- 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 ()