Hi,

I finally got what i wanted. Anyways I would like to know how does
Mime::Parser decides of the name of the folder
here is my code (it is rough)

open(CURRMSG,">c:\\message.msg");
$pop3->get($msg_id, \*CURRMSG);
close CURRMSG;
$parser = new MIME::Parser;

$parser->output_under("C:\\mail\\pop3\\info");
$parser->output_prefix("$msg_id");

open(CURRMSG, "C:\\message.msg") or die "Cannot open message: $!\n";
my $ent = $parser->parse(\*CURRMSG);
close CURRMSG;


if ($ent->effective_type eq "multipart/alternative" and $ent->parts == 2 and
$ent->parts(0)->effective_type eq "text/plain" and
$ent->parts(1)->effective_type eq "text/html") {
my $newent = MIME::Entity->build(Data =>
$ent->parts(0)->body_as_string . "\n\n[[HTML alternate version
deleted]]\n");
$ent->parts([$newent]);
$ent->make_singlepart;
$ent->sync_headers(Length => 'COMPUTE', Nonstandard => 'ERASE');
}
$ent->print;

as above I put the mails files in
$parser->output_under("C:\\mail\\pop3\\info");
I often get a file name such as
msg-1059691621-2628-4
I would like to know how mime::parser gives a name to the folder and if
there is a way to name it our way or at least get the name of the folder.







-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to