From 6c60ac51edbbf36158a7773c6464ec634b103114 Mon Sep 17 00:00:00 2001 From: Kevin Ryde Date: Fri, 6 Aug 2004 00:03:11 +0000 Subject: [PATCH] (parse-message): Correction to header continuation, loop with read-line not cdr lines. --- scripts/read-rfc822 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/read-rfc822 b/scripts/read-rfc822 index 660f0feb9..5d98075ed 100755 --- a/scripts/read-rfc822 +++ b/scripts/read-rfc822 @@ -5,7 +5,7 @@ exec ${GUILE-guile} -l $0 -c "(apply $main (cdr (command-line)))" "$@" !# ;;; read-rfc822 --- Validate RFC822 file by displaying it to stdout -;; Copyright (C) 2002 Free Software Foundation, Inc. +;; Copyright (C) 2002, 2004 Free Software Foundation, Inc. ;; ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU General Public License as @@ -97,7 +97,7 @@ exec ${GUILE-guile} -l $0 -c "(apply $main (cdr (command-line)))" "$@" (set! body-lines (drain-message port))) ((regexp-exec header-cont-rx line) => (lambda (m) - (loop (cdr lines) + (loop (read-line port) (cons (match:suffix m) current-header)))) (else (and current-header (add-header! current-header))