Restructure IMAP trace mechanism to output the trace directly to a file.
authorChris Hanson <org/chris-hanson/cph>
Tue, 23 May 2000 17:40:04 +0000 (17:40 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 23 May 2000 17:40:04 +0000 (17:40 +0000)
v7/src/imail/imail-imap.scm

index 222d0c45d2420cc584f6bfc1c9f6a3106816b7a8..9bd8e8f127d7e77e856d2e86b0e50fea88a517d3 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;; $Id: imail-imap.scm,v 1.83 2000/05/23 15:11:04 cph Exp $
+;;; $Id: imail-imap.scm,v 1.84 2000/05/23 17:40:04 cph Exp $
 ;;;
 ;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
 ;;;
 
 (define (start-imap-trace pathname)
   (stop-imap-trace)
-  (call-with-output-file pathname
-    (lambda (port)
-      (set! imap-trace-port port)
-      unspecific)))
+  (set! imap-trace-port (open-output-file pathname))
+  unspecific)
 
 (define (stop-imap-trace)
   (if imap-trace-port