reported by Eric Brine:
use Email::Stuffer;
for my $hack (0,1) {
my $msg = Email::Stuffer
->from('x@x.com')
->to('y@y.com')
->subject("Subject")
->text_body("Body\n");
$msg->as_string() if $hack;
$msg->header(Date => 'Thu, 20 Feb 2014 20:13:54 -0500');
print "$hack: $_\n" for $msg->as_string() =~ /^Date: .*/mg;
}
__END__
0: Date: Sat, 22 Feb 2014 07:31:00 -0800
1: Date: Thu, 20 Feb 2014 20:13:54 -0500
reported by Eric Brine: