Code

Unquote From line from patch before comparing with given from address.
authorKristian Høgsberg <krh@redhat.com>
Mon, 11 Jun 2007 17:04:40 +0000 (13:04 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Jun 2007 07:13:49 +0000 (00:13 -0700)
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>
git-send-email.perl

index eb876f88ddec315991c2634a976eca8e5b99a1ba..7c0c90bd21bbb009de81aa315bed1c947a32c423 100755 (executable)
@@ -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') {