From a3d2194a212df23a90754b11b912d74c77ed87b6 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Thu, 1 Jun 2000 20:07:07 +0000 Subject: [PATCH] Signal an error if unable to parse BODY section in FETCH response. --- v7/src/imail/imap-response.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.25.1