From 5504e2dcf6ab710a1501c055a4abb6a83dc52628 Mon Sep 17 00:00:00 2001 From: "Taylor R. Campbell" Date: Sun, 9 Sep 2007 18:48:46 +0000 Subject: [PATCH] In READ-CHAR-INTERNAL and READ-STRING-INTERNAL, write the result of READ-STRING to the IMAP transcript port only if it is not an EOF object. --- v7/src/imail/imap-response.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/v7/src/imail/imap-response.scm b/v7/src/imail/imap-response.scm index 454d88065..19157b213 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.50 2007/01/05 21:19:25 cph Exp $ +$Id: imap-response.scm,v 1.51 2007/09/09 18:48:46 riastradh Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -535,13 +535,15 @@ USA. (define (read-char-internal port) (let ((char (read-char port))) - (if imap-transcript-port + (if (and (not (eof-object? char)) + imap-transcript-port) (write-char char imap-transcript-port)) char)) (define (read-string-internal delimiters port) (let ((s (read-string delimiters port))) - (if imap-transcript-port + (if (and (not (eof-object? s)) + imap-transcript-port) (write-string s imap-transcript-port)) s)) -- 2.25.1