From: Chris Hanson Date: Mon, 22 May 2000 15:25:20 +0000 (+0000) Subject: Fix bug: transmission of literal not counting contents correctly. X-Git-Tag: 20090517-FFI~3744 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=e179fa7d3770a08a317b855f7a46727a653b5e0d;p=mit-scheme.git Fix bug: transmission of literal not counting contents correctly. --- 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))