From: Kristian Høgsberg Date: Mon, 11 Jun 2007 17:04:40 +0000 (-0400) Subject: Unquote From line from patch before comparing with given from address. X-Git-Tag: v1.5.2.2~11 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2cf69cf6edbaa15ed47f9c73c0eb60ce7983ba6b;p=git.git Unquote From line from patch before comparing with given from address. This makes --suppress-from actually work when you're unfortunate enough to have non-ASCII in your name. Also, if there's a match use the optionally RFC2047 quoted version from the email. Signed-off-by: Kristian Høgsberg Signed-off-by: Junio C Hamano --- diff --git a/git-send-email.perl b/git-send-email.perl index eb876f88d..7c0c90bd2 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -561,7 +561,8 @@ foreach my $t (@files) { $subject = $1; } elsif (/^(Cc|From):\s+(.*)$/) { - if ($2 eq $from) { + if (unquote_rfc2047($2) eq $from) { + $from = $2; next if ($suppress_from); } elsif ($1 eq 'From') {