From: Robin H. Johnson Date: Thu, 26 Apr 2007 02:37:19 +0000 (-0700) Subject: Perform correct quoting of recipient names. X-Git-Tag: v1.5.1.3~30 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=732263d411fe2e3e29ee9fa1c2ad1a20bdea062c;p=git-core%2Fgit.git Perform correct quoting of recipient names. Always perform quoting of the recipient names if they contain periods, previously only the author's address was treated this way. This stops sendmail binaries from exploding the name into bad addresses. Signed-off-by: Robin H. Johnson Signed-off-by: Junio C Hamano --- 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+