.TH "archmbox" "1" "" "" "" .SH "NAME" archmbox \- a simple email archiver .SH "SYNOPSIS" .LP archmbox [ \fB\-h\fR | \fB\-\-version\fR ] .br archmbox \fBMODE\fR [ \fBOPTIONS\fR ] \fB\-d\fR \fIdate\fR \fImailbox\fR [ \fImailbox\fR ... ] .br archmbox \fBMODE\fR [ \fBOPTIONS\fR ] \fB\-o\fR \fIdays\fR \fImailbox\fR [ \fImailbox\fR ... ] .SH "DESCRIPTION" .LP Archmbox is a simple email archiver written in perl; it parses one or more mailboxes, select some or all messages and then perform specific actions on the selected messages. .LP Four different \fBMODES\fR are available: .IP \(bu list mode, which is useful to list all selected messages before archmbox performs the real operations (archiving or deleting) .IP \(bu kill mode, if messages should be deleted from the mailbox(es) rather than archived .IP \(bu archive mode, to archive the selected messages in a different mailbox .IP \(bu copy mode, to copy selected messages from a source mailbox(es) without modifying it .LP Messages selection is based upon a date criteria; an absolute date or a days offset can be specified. .br It is also possible to refine the selection using perl regular expressions on the header fields of the message. Keep in mind to quote the so called metacharacters, which are reserved for use in perl's regex notation. The metacharacters are {}[]()^$.|*+?\\ .br All archived messages are stored in a new mailbox with the same name of the original one + .archived as extension (this is the default, but can be changed); the archive mailbox can be saved in gz or bz2 compressed format as well. .br Please note that the archive mailbox format is always mbox, regardless of original mailbox format. Moreover, mailboxes must be specified using the full path. .br Messages are appended to the archive mailbox to allow multiple executions of the script against the same mailbox. .SH "MODES" .TP \fB\-a\fR, \fB\-\-archive\fR Selected messages are archived in a different mailbox. .TP \fB\-k\fR, \fB\-\-kill\fR Selected messages are deleted rather than archived. .TP \fB\-l\fR, \fB\-\-list\fR List all selected messages. .br Warnings about skipped mailboxes (in use, empty ...) are printed to stderr. So redirecting them to /dev/null won't clutter your list. .TP \fB\-y\fR, \fB\-\-copy\fR Selected messages are copied from the source mailbox. .SH "OPTIONS" .LP .TP \fB\-b, \-\-backup\fR Creates a backup of the original mailbox before archmbox execution. The mailbox is called \fImailbox.backup\fR .TP \fB\-\-bzip2\fR Use bzip2 to compress the archive mailbox (use with \-c). .TP \fB\-c, \-\-compress\fR Compress the archive mailbox after script execution. .TP \fB\-d, \-\-date \fR Specifies the threshold date for messages. The date must be supplied in the following format: yyyy\-mm\-dd .TP \fB\-D, \-\-date\-header\fR Force the use of the "Date:" header to age a message. If the header is somehow corrupt, the date/time information are gathered for the beginning line of the message. .TP \fB\-e, \-\-extension \fR Specifies the suffix for the archive mailbox; the default is \fIarchived\fR. If \fInone\fR is specified, no suffix will be used (use carefully). .TP \fB\-f, \-\-full\-name\fR Prepends the path of the mailbox to the name of the archive mailbox. This option overrides \-n. .TP \fB\-\-format\fR Specifies the format of the mailboxes to parse. Legal values are mbox and mbx. Defaults to "mbox". .TP \fB\-h, \-\-help\fR Prints help. .TP \fB\-i, \-\-ignore \fR Any mailbox/directory matching will be skipped while archiving. .TP \fB\-\-keep\-flagged\fR Flagged messages will not be archived. .TP \fB\-\-keep\-unread\fR Unread messages will not be archived. .TP \fB\-m, \-\-minsize\fR Specifies the minimum size of the mailbox to be archived. Mailboxes smaller than will not be parsed for archiving. .TP \fB\-n, \-\-archive\-name\fR Specifies the name of the archive file (default: mailbox name) .TP \fB\-\-nosymlink\fR Do not follow symbolic links when processing mailboxes. .TP \fB\-\-nowarnings\fR Suppress mailbox related warnings. Use only if you know what you're doing! .TP \fB\-\-omit\-prefix \fR Omit from the name of the mailbox when full name (option \-f) is required. .TP \fB\-o, \-\-offset \fR Specifies the offset (in days) from today for threshold date of a message. This option replaces \-d. If you specify \-1, archmbox will operate on all messages. .TP \fB\-p, \-\-archive\-path, \-\-path \fR Specifies where to store the archive mailbox (default: "."). must be specified using full path. The \-\-path option is now deprecated and will be dropped in future releases. .TP \fB\-r, \-\-reverse\fR Reverse the sense of \fIoffset\fR or \fIdate\fR value. It usually means \fIolder than\fR but with this switch, it means \fInewer than\fR. .TP \fB\-R, \-\-recursive\fR Act recursively on directories. If one or more directories are specified on the command line, all mailboxes stored in those directories will be parsed for archiving. Implies option \-f. .TP \fB\-t, \-\-tmpdir \fR Specify a temporary working directory. This value overrides the default one, which will be set in descending order to the first defined one of: the environment variables $TMPDIR and $TMP, the compiled in one and, as a fallback, '/tmp'. .br To see the default value used by archmbox, do: archmbox \-\-help. .br must be specified using full path. .TP \fB\-\-time