#!/usr/bin/perl -w # # ARCHMBOX: a simple mailbox archiver. # Copyright (C) 2001-2005 Alessandro Dotti Contra # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # For any questions related to this software, please write me at: # # Alessandro Dotti Contra # v. Verne, 6 # 40128 Bologna ITALY # # or email me at: adotti@users.sourceforge.net #============================================================================== # Archive all selected messages from the specified mailbox(es). # # usage: # archmbox [-h|--version] # archmbox MODE [OPTIONS] -d [, ...] # archmbox MODE [OPTIONS] -o [, ...] # # MODES # -a, --archive archive mode: archive selected messages # -k, --kill kill mode: delete selected messages # -l, --list list mode: list what messages will be # selected # -y, --copy copy mode: copy selected messages # # OPTIONS # -b, --backup backup the original mailbox before execution # --bzip2 compress the archive mailbox using bzip2 (use with -c) # -c, --compress compress the archive mailbox # -d, --date treshold date for messages # -D, --date-header use 'Date:' header to age the messages # -e, --extension suffix for the archive mailbox, "none" means no # extension (default: "archived") # -f, --full-name prepend the path of the mailbox to the name of the # archive mailbox # --format specify mailboxes format (default: mbox) # Legal values are: mbox, mbx # -h, --help prints help # -i, --ignore skip any mailbox/directory matching the regular # expression when archiving # --keep-flagged keep flagged messages # --keep-unread keep unread messages # -m, --minsize set the minimum mailbox size to be archived (in KB) # -n, --archive-name name of the archive (default: mailbox name) # --nosymlik do not follow symlinks when processing mailboxes # --nowarnings suppress mailbox related warnings # -o, --offset offset (in days) from today for treshold date # -1 means "all messages" # --omit-prefix omit from archive mailbox name (use with -f) # -p, --archive-path, --path # where to store archive mailbox (full path) # (default: "."). The --path option is deprecated and will # be dropped in future relases. # -r, --reverse offset means messages newer rather than older # -R, --recursive act recursively on directories (implies -f) # -t, --tmpdir directory to store temporary files (full path) # (default if set: environment variable $TMPDIR, # $TMP, then compiled in and last'/tmp') # --time