Skip to content

date header gets clobbered by Email::Simple's goofy behavior #13

Description

@rjbs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions