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 <krh@redhat.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Kristian Høgsberg committed
Jun 11, 2007 at 13:04 UTC
2cf69cf6edbaa15ed47f9c73c0eb60ce7983ba6b
1 file changed
+2
-1
git-send-email.perl
+2
-1
@@ -561,7 +561,8 @@ foreach my $t (@files) {
561
$subject = $1;
562
563
} elsif (/^(Cc|From):\s+(.*)$/) {
564
- if ($2 eq $from) {
564
+ if (unquote_rfc2047($2) eq $from) {
565
+ $from = $2;
566
next if ($suppress_from);
567
}
568
elsif ($1 eq 'From') {