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 <mst@redhat.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Michael S. Tsirkin committed Jun 5, 2013 at 21:10 UTC 5e3ee39df2be5712dbff5a7cbca94d35ea56990c
1 file changed +1 -1
git-send-email.perl
+1 -1
@@ -1446,7 +1446,7 @@ sub recipients_cmd {
1446 $address =~ s/^\s*//g;
1447 $address =~ s/\s*$//g;
1448 $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'});
1450 push @addresses, $address;
1451 printf("($prefix) Adding %s: %s from: '%s'\n",
1452 $what, $address, $cmd) unless $quiet;