Why not adopt me?
NAME
Mail::Convert::Mbox::ToEml - Perl extension to convert Mbox files (from Mozilla and Co) to Outlook Express eml files.
SYNOPSIS
use Mail::Convert::Mbox::ToEml;
my $EML=Mail::Convert::Mbox::ToEml->new($file, $outdir);
my $ret=$EML->CreateEML();
DESCRIPTION
Mail::Convert::Mbox::ToEml is a module to convert Mbox mail folder which used by Mozilla and co. to single Outlook Express .eml files.
FUNCTIONS
- new()
-
The constructor. $EML=Mail::Convert::Mbox::ToEml->new($file, $outdir); The two arguments are: $file is the MBox file to convert. $outdir is the directory where the single eml files are stored.
- CreateEML()
-
This function do the convertion and writes the .eml file. The two optional arguments are: $file is the MBox file to convert. $outdir is the directory where the single eml files are stored.
The return value is undef if the file or the ouput directory does not exist and 1 on success. If there was an error to create the eml file it will be printed out and continuewith the next message.
CREDITS
Many thank's to Ivan from Broobles.com (http://www.broobles.com/imapsize/) the author of the usefull IMAPSize program for his help and tips to develop this module.
EXPORT
None by default.
AUTHOR
Reinhard Pagitsch, <rpirpag@gmx.at>
SEE ALSO
perl.