From c38789a6ce84ae95ecf8949fa330fb29fca2d909 Mon Sep 17 00:00:00 2001 From: "Taylor R. Campbell" Date: Sat, 23 Aug 2008 17:44:54 +0000 Subject: [PATCH] Trim whitespace surrounding addresses in RFC822:STRING->SPLIT-ADDRESS-TOKENS. --- v7/src/edwin/rfc822.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v7/src/edwin/rfc822.scm b/v7/src/edwin/rfc822.scm index 38fdd2a07..74818dbcd 100644 --- a/v7/src/edwin/rfc822.scm +++ b/v7/src/edwin/rfc822.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: rfc822.scm,v 3.11 2008/08/11 22:48:50 riastradh Exp $ +$Id: rfc822.scm,v 3.12 2008/08/23 17:44:54 riastradh Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -89,7 +89,7 @@ USA. (let recur ((tokens tokens)) (receive (tokens tokens*) (span (lambda (token) (not (eqv? token #\,))) tokens) - (cons (rfc822:tokens->string tokens) + (cons (string-trim (rfc822:tokens->string tokens)) (if (pair? tokens*) (recur (cdr tokens*)) '()))))) (define (rfc822:canonicalize-address-string string) -- 2.25.1