- or download this
my $msg = Mail::MboxParser::Mail->new([<STDIN>],[<STDIN>]);
- or download this
my $msgtext;
{ local $/; $msgtext = <STDIN> }
my ($header, $body) = split /\n\r?\n/, $msgtext, 2;
my $msg = Mail::MboxParser::Mail->new($header, $body);
- or download this
my @headerlines;
while (<STDIN>) {
...
}
my $msg = Mail::MboxParser::Mail->new(\@headerlines, "");
- or download this
my $msg = Mail::MboxParser::Mail->new(\@headerlines, [<STDIN>]);