Hi, I am trying to parse a mail to get the body of a mail in the simplist way possible. I have tried Email::Simple but a hmtl tags are returned when I parse the mail which is no good.
I have managed to get the body with no tags using MIME:
arser BUT I am having a few issues with it:
(Note : $local_FileString contains the contents read from a .msg file.)
When a parse the filestring a number of files are returned, usually a .txt and .html version of the body. How can I control the output better with the module. I dont understand how 2 files are created in parsing.
Can anyone suggest a better way of getting the body of a mail without the html tags.
Here is the parsing code :
my $mail = Email::Simple->new($local_FileString);
my $parser = new MIME:
arser;
my $entity = $parser->parse_data(\$local_FileString) or die "Parse failed\n";
I have managed to get the body with no tags using MIME:
(Note : $local_FileString contains the contents read from a .msg file.)
When a parse the filestring a number of files are returned, usually a .txt and .html version of the body. How can I control the output better with the module. I dont understand how 2 files are created in parsing.
Can anyone suggest a better way of getting the body of a mail without the html tags.
Here is the parsing code :
my $mail = Email::Simple->new($local_FileString);
my $parser = new MIME:
my $entity = $parser->parse_data(\$local_FileString) or die "Parse failed\n";