mbox-month-pack - Copy mailbox messages into monthly mailbox files. |
mbox-month-pack - Copy mailbox messages into monthly mailbox files.
mbox-month-pack [options] folder ...
This program copies mailbox messages into monthly (or yearly if
the -yearly
option is specified) mailbox files. By default,
monthly mailbox files are created with filenames of YYYY-MM format.
If the -yearly
option is specified, than messages will be split
into yearly, YYYY, files. If a mailbox file already exists,
messages will be appended to it.
This program is provided as part of mharc to provide the ability to import existing mailbox messages into mharc archives, or as a possible replacement for filter-spool for sites that have alternate methods for managing incoming mail.
-debug
Like -verbose
, but prints much more.
-help
Print out help message.
-man
Print out the manpage.
-outdir
directory
Directory to place mailbox files. If not specified, the current working directory is used.
-usesepdate
Use the date specified in the mailbox message separator instead of what is included in the message header.
-verbose
Print status of what is going on.
-yearly
Generate yearly-based mailbox files instead of monthly-based.
This program uses MHonArc's date parsing functions. Therefore, MHonArc must be installed on your system and the MHonArc libraries located within Perl's include path.
This program does not remember what messages it has processed. For example, if you run the program twice in a row like the following:
prompt> mbox-month-pack mail.mbx prompt> mbox-month-pack mail.mbx
The resulting monthly mailbox files will contain two of each message.
Appending to pre-existing gzipped monthly, and yearly, mailbox files are not recognized when splitting input. If you want output to be appended to existing compressed mailboxes, you must uncompress them first before invoking this program.
$Id: mbox-month-pack,v 1.6 2015/12/21 19:07:50 ehood Exp $
Earl Hood, earl@earlhood.com
This program is part of the mharc archiving system and comes with ABSOLUTELY NO WARRANTY and may be copied only under the terms of the GNU General Public License, which may be found in the mharc distribution.
mbox-month-pack - Copy mailbox messages into monthly mailbox files. |