Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jun 2010 11:24:23 +0000 (UTC)
From:      Ulrich Spoerlein <uqs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r209038 - stable/8/usr.bin/mail
Message-ID:  <201006111124.o5BBON50059826@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: uqs
Date: Fri Jun 11 11:24:23 2010
New Revision: 209038
URL: http://svn.freebsd.org/changeset/base/209038

Log:
  MFC r208592: mail(1) misses addresses when replying to all
  
  There's a parsing error for fields where addresses are not separated by
  space. This is often produced by MS Outlook.
  
  PR:		bin/131861
  Submitted by:	Pete French <petefrench at ticketswitch.com>
  Tested by:	Pete French
  Reviewed by:	mikeh
  Approved by:	re (kib)

Modified:
  stable/8/usr.bin/mail/util.c
Directory Properties:
  stable/8/usr.bin/mail/   (props changed)

Modified: stable/8/usr.bin/mail/util.c
==============================================================================
--- stable/8/usr.bin/mail/util.c	Fri Jun 11 09:27:33 2010	(r209037)
+++ stable/8/usr.bin/mail/util.c	Fri Jun 11 11:24:23 2010	(r209038)
@@ -496,10 +496,11 @@ skin(name)
 				*cp2++ = ' ';
 			}
 			*cp2++ = c;
-			if (c == ',' && *cp == ' ' && !gotlt) {
+			if (c == ',' && !gotlt &&
+			    (*cp == ' ' || *cp == '"' || *cp == '<')) {
 				*cp2++ = ' ';
-				while (*++cp == ' ')
-					;
+				while (*cp == ' ')
+					cp++;
 				lastsp = 0;
 				bufend = cp2;
 			}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006111124.o5BBON50059826>