Handle UNTERMINATED tokens in RFC822:TOKENS->STRING.
authorTaylor R Campbell <campbell@mumble.net>
Fri, 18 Sep 2009 21:12:45 +0000 (17:12 -0400)
committerTaylor R Campbell <campbell@mumble.net>
Fri, 18 Sep 2009 21:12:45 +0000 (17:12 -0400)
src/edwin/rfc822.scm

index 68882b054ab796a1095b838f9047a961d7163634..14d5ceb6154aa49ade0c5ba91050f9356b8355bf 100644 (file)
@@ -315,6 +315,9 @@ USA.
             ((and (pair? (car tokens))
                   (eq? 'ILLEGAL (caar tokens)))
              (write-char (cdar tokens) port))
+            ((and (pair? (car tokens))
+                  (eq? 'UNTERMINATED (caar tokens)))
+             (write-string (cdar tokens) port))
             (else
              (error "Malformed RFC-822 token stream:" tokens)))))))