Re: maildir (?) to mbox
Mark Overmeer <[email protected]> Tue, 19 Jul 2005 11:37:54 +0200
| Newsgroups | gmane.comp.lang.perl.modules.mail-box |
|---|---|
| Organization | MARKOV Solutions |
| Message-ID | <[email protected]> |
* M. Lewis ([email protected]) [050719 07:28]: > I have about 14K files that I need to get into mbox format to see if > there is anything worth saving. These files (I think) were all created > by Kmail. Have a look at http://perl.overmeer.net/mailbox/html/jump.cgi?Mail::Box&1185 Something like this: my $mgr = Mail::Box::Manager->new; my $maildir = $mgr->open(...); my $mbox = $mgr->open(type => 'mbox', folder => '/tmp/mbox.all', create => 1, access => 'w'); $maildir->copyTo($mbox); $maildir->close; $mbox->close; -- MarkOv ------------------------------------------------------------------------ drs Mark A.C.J. Overmeer MARKOV Solutions [email protected] [email protected] http://Mark.Overmeer.net http://solutions.overmeer.net