diff options
author | Kristian Høgsberg <krh@redhat.com> | 2007-06-11 13:04:40 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-06-12 00:13:49 -0700 |
commit | 2cf69cf6edbaa15ed47f9c73c0eb60ce7983ba6b (patch) | |
tree | 71213984a41ddf4173acae52cf59119e4ca4d6c9 /git-send-email.perl | |
parent | 6894f49f7bd52da77a3f4ba7fc52d44046f419ac (diff) | |
download | git-2cf69cf6edbaa15ed47f9c73c0eb60ce7983ba6b.tar.gz git-2cf69cf6edbaa15ed47f9c73c0eb60ce7983ba6b.tar.xz |
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>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-x | git-send-email.perl | 3 |
1 files changed, 2 insertions, 1 deletions
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') { |