Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parser Problem

Status
Not open for further replies.

Vagabundo

Programmer
Oct 31, 2002
10
DO
Hi,
I read the body of an incoming mail with doc attachment in the variable $messagebody and need to get the doc-file saved on my harddisc.
But it does not work!

MIME::parser

*snip* Read email-body

my $parser = new MIME::parser;
$parser->output_dir("/tmp");
$parser->output_prefix("part");
my $entity = $parser->parse($messagebody) or die "couldn't parse MIME stream";

I got only an empty file like this:
part-1773-1.txt

Sorry but I have no experience with parser

Has anybody a hint what there is wrong?

Best regards
Christian


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top