From: Chris Hanson Date: Thu, 8 Jun 2000 18:49:27 +0000 (+0000) Subject: Extend ->HEADER-FIELDS to accept a string. X-Git-Tag: 20090517-FFI~3575 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=0633c134c481ff0155c244f34b972b74cda28611;p=mit-scheme.git Extend ->HEADER-FIELDS to accept a string. --- 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?)