I am using this module to get the body of a mail. When I execute the script below, 2 file are generated one html and one txt file. However both files are randomly named (it seems). I wish to specify the name of the .txt file and html files, (call them NewMsg.txt and NewMsg.html) respectively.
Code below :
$Msg_Path = 'V:/Test/md50000004264.msg';
open(FH, $Msg_Path) or die "Cannot open file $!";
my $FileString = do { local $/; <FH> };
close(FH);
my $parser = new MIME:
arser;
$entity = $parser->parse_data($FileString);
Code below :
$Msg_Path = 'V:/Test/md50000004264.msg';
open(FH, $Msg_Path) or die "Cannot open file $!";
my $FileString = do { local $/; <FH> };
close(FH);
my $parser = new MIME:
$entity = $parser->parse_data($FileString);