From 0633c134c481ff0155c244f34b972b74cda28611 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Thu, 8 Jun 2000 18:49:27 +0000 Subject: [PATCH] Extend ->HEADER-FIELDS to accept a string. --- v7/src/imail/imail-core.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v7/src/imail/imail-core.scm b/v7/src/imail/imail-core.scm index 59a66b955..887249f8c 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.98 2000/06/05 20:56:46 cph Exp $ +;;; $Id: imail-core.scm,v 1.99 2000/06/08 18:49:27 cph Exp $ ;;; ;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology ;;; @@ -688,6 +688,7 @@ (define (->header-fields object) (cond ((or (pair? object) (null? object)) object) ((message? object) (message-header-fields object)) + ((string? object) (string->header-fields object)) (else (error:wrong-type-argument object "header fields" #f)))) (define (get-first-header-field headers name error?) -- 2.25.1