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:
arser
*snip* Read email-body
my $parser = new MIME:
arser;
$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
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:
*snip* Read email-body
my $parser = new MIME:
$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