Skip to content

Commit 5e3ee39

Browse files
mstsirkingitster
authored andcommitted
send-email: fix suppress-cc=self on cccmd
When cccmd is used, old-style suppress-from filter is applied by the newer suppress-cc=self isn't. Fix this up. Signed-off-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5adcf2c commit 5e3ee39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-send-email.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,7 @@ sub recipients_cmd {
14461446
$address =~ s/^\s*//g;
14471447
$address =~ s/\s*$//g;
14481448
$address = sanitize_address($address);
1449-
next if ($address eq $sanitized_sender and $suppress_from);
1449+
next if ($address eq $sanitized_sender and $suppress_cc{'self'});
14501450
push @addresses, $address;
14511451
printf("($prefix) Adding %s: %s from: '%s'\n",
14521452
$what, $address, $cmd) unless $quiet;

0 commit comments

Comments
 (0)