Picky mail systems won't accept email addresses where recipient
has period in name; ie. David S. Miller <davemloft.net> will not work.
Signed-off-by: Stephen Hemminger <[email protected]>
--- a/scripts/get_maintainer.pl 2010-02-18 22:57:00.614708380 -0800
+++ b/scripts/get_maintainer.pl 2010-02-18 22:57:00.634708417 -0800
@@ -551,7 +551,7 @@ sub parse_email {
$name =~ s/^\"|\"$//g;
$address =~ s/^\s+|\s+$//g;
- if ($name =~ /[^a-z0-9 \.\-]/i) { ##has "must quote" chars
+ if ($name =~ /[^\w \-]/i) { ##has "must quote" chars
$name =~ s/(?<!\\)"/\\"/g; ##escape quotes
$name = "\"$name\"";
}
@@ -568,7 +568,7 @@ sub format_email {
$name =~ s/^\"|\"$//g;
$address =~ s/^\s+|\s+$//g;
- if ($name =~ /[^a-z0-9 \.\-]/i) { ##has "must quote" chars
+ if ($name =~ /[^\w \-]/i) { ##has "must quote" chars
$name =~ s/(?<!\\)"/\\"/g; ##escape quotes
$name = "\"$name\"";
}
--
On Thu, 2010-02-18 at 23:01 -0800, Stephen Hemminger wrote:
> plain text document attachment (get-maintainer-vger.patch)
> Picky mail systems won't accept email addresses where recipient
> has period in name; ie. David S. Miller <davemloft.net> will not work.
>
> Signed-off-by: Stephen Hemminger <[email protected]>
Acked-by: Joe Perches <[email protected]>