Skip to content

Commit 2cf69cf

Browse files
Kristian Høgsberggitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6894f49 commit 2cf69cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

git-send-email.perl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,8 @@ sub send_message
561561
$subject = $1;
562562

563563
} elsif (/^(Cc|From):\s+(.*)$/) {
564-
if ($2 eq $from) {
564+
if (unquote_rfc2047($2) eq $from) {
565+
$from = $2;
565566
next if ($suppress_from);
566567
}
567568
elsif ($1 eq 'From') {

0 commit comments

Comments
 (0)