Hello, i'd like to download mail messages from a remote mailbox, catch attachments and put them in a directory...
I use Mail::POP3Client to download them and i use HeadAndBodyToFile method to write messages in a file.
So i've a file in mime format... So i want to convert it in attachment files but i can't understand how!!
i use:
$p = new MIME::Parser;
$p->output_dir("mime");
$e=$p->parse_open("prova.MSG") or die "Non ce la faccio!!\n\n";
$e->dump_skeleton;
$body=$e->bodyhandle;
$num=$e->parts;
print "Parti: $num\n";
It prints "Parti: 0"... Why there are no mime parts???