Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Feb 2010 14:21:44 +0000
From:      Pete French <petefrench@ticketswitch.com>
To:        freebsd-stable@freebsd.org
Subject:   patch for /usr/bin/mail
Message-ID:  <E1NcJdQ-000Lv0-1W@dilbert.ticketswitch.com>

next in thread | raw e-mail | index | archive | help
This patch fixes a problem of mail missing addresses when replying
to emails generated by some Microsoft systems, which do not insert a
space after the comma in lists of addresses. Was filed as PR bin/131861
If anyone who still uses /usr/bin/mail as their primarly email client
could test it then I would be grateful (would also be garetful if
someone could volunteer to commit it shold it prove to work fine :-) )

-pete.

--- usr.bin/mail/util.c.orig    2010-02-02 14:10:34.220987358 +0000
+++ usr.bin/mail/util.c 2010-02-02 14:12:49.968147827 +0000
@@ -496,10 +496,10 @@
                                *cp2++ = ' ';
                        }
                        *cp2++ = c;
-                       if (c == ',' && *cp == ' ' && !gotlt) {
+                       if (c == ',' && (*cp == ' ' || *cp == '"') && !gotlt) {
                                *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?E1NcJdQ-000Lv0-1W>