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: https://git.lorimer.id.au/gitweb.git/diff_plain/732263d411fe2e3e29ee9fa1c2ad1a20bdea062c?hp=-c 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 --- 732263d411fe2e3e29ee9fa1c2ad1a20bdea062c diff --git a/git-send-email.perl b/git-send-email.perl index ad83009e23..e4fe8965bb 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+