
Acme::Archive::Mbox - Mbox as an archive format.

Version 0.01

Uses Mbox as an archive format, like tar or zip but silly. Creates an mbox with one message per file or directory. File contents are stored as an attachment, metadata goes in mail headers.
use Acme::Archive::Mbox;
my $archive = Acme::Archive::Mbox->new();
$archive->add_file('filename');
$archive->add_data('file/name', $contents);
$archive->write('foo.mbox');
...
$archive->read('foo.mbox');
$archive->extract();

Create an Acme::Archive::Mbox object.
Add a file given a filename and contents. (File need not exist on disk)
Add a file given a filename. File will be read from disk, leading slashes will be stripped. Will accept an optional alternative filename to be used in the archive.
Returns a list of AAM::File objects.
Write archive to a file
Read archive from a file.

Ian Kilgore, <iank at cpan.org>


You can find documentation for this module with the perldoc command.
perldoc Acme::Archive::Mbox
You can also look for information at:


Copyright 2008 Ian Kilgore, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.