summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 732263d)
raw | patch | inline | side by side (parent: 732263d)
author | Robin H. Johnson <robbat2@gentoo.org> | |
Thu, 26 Apr 2007 02:37:20 +0000 (19:37 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 26 Apr 2007 04:11:58 +0000 (21:11 -0700) |
Ensure that @recipients is only raw addresses when it is handed to the sendmail
binary OR Net::SMTP, otherwise BCC cases might get an extra <, or wierd stuff
might be passed to the exec.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
binary OR Net::SMTP, otherwise BCC cases might get an extra <, or wierd stuff
might be passed to the exec.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-send-email.perl | patch | blob | history |
diff --git a/git-send-email.perl b/git-send-email.perl
index e4fe8965bbb305bcf569d354d3d8cc4f9fc084a3..b6022929042e0b03f395c553e93c6f47a35c6990 100755 (executable)
--- a/git-send-email.perl
+++ b/git-send-email.perl
@cc = (map { sanitize_address_rfc822($_) } @cc);
my $to = join (",\n\t", @recipients);
@recipients = unique_email_list(@recipients,@cc,@bcclist);
+ @recipients = (map { extract_valid_address($_) } @recipients);
my $date = format_2822_time($time++);
my $gitversion = '@@GIT_VERSION@@';
if ($gitversion =~ m/..GIT_VERSION../) {
$header .= join("\n", @xh) . "\n";
}
- my @sendmail_parameters = ('-i', map { extract_valid_address($_) } @recipients);
+ my @sendmail_parameters = ('-i', @recipients);
if ($dry_run) {
# We don't want to send the email.