X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=git-send-email.perl;h=e4fe8965bbb305bcf569d354d3d8cc4f9fc084a3;hb=732263d411fe2e3e29ee9fa1c2ad1a20bdea062c;hp=ad83009e236c4b8be2fa0b4204ed340c0e205de5;hpb=af068d274245be9aedc58e6835c2e43329639974;p=git.git diff --git a/git-send-email.perl b/git-send-email.perl index ad83009e2..e4fe8965b 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -431,9 +431,22 @@ sub unquote_rfc2047 { return "$_"; } +# If an address contains a . in the name portion, the name must be quoted. +sub sanitize_address_rfc822 +{ + my ($recipient) = @_; + my ($recipient_name) = ($recipient =~ /^(.*?)\s+