Move MIME-decoding output ports to runtime system.
authorChris Hanson <org/chris-hanson/cph>
Mon, 26 Jun 2000 22:15:32 +0000 (22:15 +0000)
committerChris Hanson <org/chris-hanson/cph>
Mon, 26 Jun 2000 22:15:32 +0000 (22:15 +0000)
v7/src/imail/imail-top.scm

index a9a34788391f338ebb4fe24347c5b39954c83d06..def0f7ff00f1b345a5c64ed73f99b6fd3bcfc25f 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;; $Id: imail-top.scm,v 1.193 2000/06/26 19:30:33 cph Exp $
+;;; $Id: imail-top.scm,v 1.194 2000/06/26 22:15:32 cph Exp $
 ;;;
 ;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
 ;;;
@@ -2246,7 +2246,7 @@ Negative argument means search in reverse."
   (body #f read-only #t)
   (selector #f read-only #t)
   (context #f read-only #t))
-\f
+
 (define (call-with-mime-decoding-output-port encoding port text? generator)
   (case encoding
     ((QUOTED-PRINTABLE)
@@ -2255,42 +2255,6 @@ Negative argument means search in reverse."
      (call-with-decode-base64-output-port port text? generator))
     (else
      (generator port))))
-
-(define (call-with-decode-quoted-printable-output-port port text? generator)
-  (let ((port
-        (make-port decode-quoted-printable-port-type
-                   (decode-quoted-printable:initialize port text?))))
-    (let ((v (generator port)))
-      (close-output-port port)
-      v)))
-
-(define decode-quoted-printable-port-type
-  (make-port-type
-   `((WRITE-SUBSTRING
-      ,(lambda (port string start end)
-        (decode-quoted-printable:update (port/state port) string start end)))
-     (CLOSE-OUTPUT
-      ,(lambda (port)
-        (decode-quoted-printable:finalize (port/state port)))))
-   #f))
-
-(define (call-with-decode-base64-output-port port text? generator)
-  (let ((port
-        (make-port decode-base64-port-type
-                   (decode-base64:initialize port text?))))
-    (let ((v (generator port)))
-      (close-output-port port)
-      v)))
-
-(define decode-base64-port-type
-  (make-port-type
-   `((WRITE-SUBSTRING
-      ,(lambda (port string start end)
-        (decode-base64:update (port/state port) string start end)))
-     (CLOSE-OUTPUT
-      ,(lambda (port)
-        (decode-base64:finalize (port/state port)))))
-   #f))
 \f
 ;;;; Automatic wrap/fill