From e179fa7d3770a08a317b855f7a46727a653b5e0d Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Mon, 22 May 2000 15:25:20 +0000 Subject: [PATCH] Fix bug: transmission of literal not counting contents correctly. --- v7/src/imail/imap-syntax.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/v7/src/imail/imap-syntax.scm b/v7/src/imail/imap-syntax.scm index 0a539322a..d732a5613 100644 --- a/v7/src/imail/imap-syntax.scm +++ b/v7/src/imail/imap-syntax.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: imap-syntax.scm,v 1.10 2000/05/19 02:31:12 cph Exp $ +;;; $Id: imap-syntax.scm,v 1.11 2000/05/22 15:25:20 cph Exp $ ;;; ;;; Copyright (c) 2000 Massachusetts Institute of Technology ;;; @@ -587,9 +587,10 @@ (imap:write-literal-substring-header string 0 (string-length string) port)) (define (imap:write-literal-substring-header string start end port) - string (imap-transcript-write-char #\{ port) - (imap-transcript-write (fix:- end start) port) + (imap-transcript-write + (+ (- end start) (length (substring-search-all "\n" string start end))) + port) (imap-transcript-write-char #\} port) (imap-transcript-write-char #\return port) (imap-transcript-write-char #\linefeed port)) -- 2.25.1