From: Uwe Kleine-König Date: Tue, 10 Jul 2007 17:02:43 GMT Subject: [PATCH] send-email: extend sanitize_address_rfc822 to do rfc2047 quoting Message-ID: <11840869641759-git-send-email-ukleinek@informatik.uni-freiburg.de> Without this patch I'm not able to properly send emails as I have a non-ascii character in my name. Signed-off-by: Uwe Kleine-König --- As I'm not a perl profi, someone wants to check this code. Actually this series is a test, as it is sended with the patched send-email. I hope it works :-) Uwe git-send-email.perl | 24 +++++++++++++++++++----- 1 files changed, 19 insertions(+), 5 deletions(-) diff --git a/git-send-email.perl b/git-send-email.perl index 89f7c36..8b3d450 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -459,16 +459,30 @@ sub unquote_rfc2047 { return "$_"; } -# If an address contains a . in the name portion, the name must be quoted. +# If an address contains a non-ascii char in the name port, quote it according +# to rfc2047. +# If an address contains a . in the name portion, the name must be quoted using +# double quotes. sub sanitize_address_rfc822 { my ($recipient) = @_; - my ($recipient_name) = ($recipient =~ /^(.*?)\s+