From: Chris Hanson Date: Thu, 1 Jun 2000 20:07:07 +0000 (+0000) Subject: Signal an error if unable to parse BODY section in FETCH response. X-Git-Tag: 20090517-FFI~3642 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=a3d2194a212df23a90754b11b912d74c77ed87b6;p=mit-scheme.git Signal an error if unable to parse BODY section in FETCH response. --- diff --git a/v7/src/imail/imap-response.scm b/v7/src/imail/imap-response.scm index 761e154aa..04349caa7 100644 --- a/v7/src/imail/imap-response.scm +++ b/v7/src/imail/imap-response.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: imap-response.scm,v 1.32 2000/06/01 18:44:35 cph Exp $ +;;; $Id: imap-response.scm,v 1.33 2000/06/01 20:07:07 cph Exp $ ;;; ;;; Copyright (c) 2000 Massachusetts Institute of Technology ;;; @@ -199,8 +199,9 @@ (define (parse-section string) (let ((pv (parse-string imap:parse:section string))) - (and pv - (parser-token pv 'SECTION)))) + (if (not pv) + (error:bad-range-argument string 'PARSE-SECTION)) + (parser-token pv 'SECTION))) (define (parse-date-time string) (decoded-time->universal-time