git-send-email: do not pass custom Date: header
We already generate a Date: header based on when the patch was emailed. git-format-patch includes the Date: header of the patch. Having two Date: headers is just confusing, so we just use the current Date: Often the mailed patches in a patch series are created over a series of several hours or days, so the Date: header from the original commit is incorrect for email, and often far off enough for spam filters to complain. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Eric Wong committed
Oct 23, 2006 at 00:46 UTC
1d6a003a42b3c23ad7883b0bbe6a034728e51836
1 file changed
+1
-1
git-send-email.perl
+1
-1
@@ -514,7 +514,7 @@ foreach my $t (@files) {
514
$2, $_) unless $quiet;
515
push @cc, $2;
516
}
517
- elsif (/^[-A-Za-z]+:\s+\S/) {
517
+ elsif (!/^Date:\s/ && /^[-A-Za-z]+:\s+\S/) {
518
push @xh, $_;
519
}
520