From 90db83ce1016ccda82c57f08cf81683b00ff6421 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Tue, 7 Dec 2004 07:25:26 +0000 Subject: [PATCH] Fix a #f/() type error. --- v7/src/imail/imail-imap.scm | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/v7/src/imail/imail-imap.scm b/v7/src/imail/imail-imap.scm index 0984694c6..2ebdb6171 100644 --- a/v7/src/imail/imail-imap.scm +++ b/v7/src/imail/imail-imap.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: imail-imap.scm,v 1.202 2004/02/17 05:53:31 cph Exp $ +$Id: imail-imap.scm,v 1.203 2004/12/07 07:25:26 cph Exp $ Copyright 1999,2000,2001,2003,2004 Massachusetts Institute of Technology @@ -1330,17 +1330,21 @@ USA. (error "Unrecognized MIME bodystructure:" body)) (define (parse-mime-parameters parameters) - (let ((lose (lambda () (error "Malformed MIME parameters:" parameters)))) - (let loop ((parameters parameters) (alist '())) - (if (pair? parameters) - (if (pair? (cdr parameters)) - (loop (cddr parameters) - (cons (cons (intern (car parameters)) (cadr parameters)) - alist)) - (lose)) - (if (null? parameters) - (reverse! alist) - (lose)))))) + (if parameters + (let ((lose + (lambda () (error "Malformed MIME parameters:" parameters)))) + (let loop ((parameters parameters) (alist '())) + (if (pair? parameters) + (if (pair? (cdr parameters)) + (loop (cddr parameters) + (cons (cons (intern (car parameters)) + (cadr parameters)) + alist)) + (lose)) + (if (null? parameters) + (reverse! alist) + (lose))))) + '())) (define (parse-mime-disposition disposition) (and disposition -- 2.25.1