aboutsummaryrefslogtreecommitdiffstats
path: root/archivemail.py
diff options
context:
space:
mode:
authorPaul Rodger <paul@paulrodger.com>2002-03-31 03:46:59 +0000
committerPaul Rodger <paul@paulrodger.com>2002-03-31 03:46:59 +0000
commit4fdde09fc42972f40d6649dd822d2c43e75477fd (patch)
tree9cc9ad47de228b5dcfbea984180b0a0fd9d95d15 /archivemail.py
parent1b7ab09f24f3d70b1d89291c64f13812b5557e92 (diff)
downloadarchivemail-4fdde09fc42972f40d6649dd822d2c43e75477fd.tar.gz
archivemail-4fdde09fc42972f40d6649dd822d2c43e75477fd.tar.bz2
archivemail-4fdde09fc42972f40d6649dd822d2c43e75477fd.zip
Do not warn about duplicate Message-IDs by default.
Diffstat (limited to 'archivemail.py')
-rwxr-xr-xarchivemail.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/archivemail.py b/archivemail.py
index 25354bc..55f8a18 100755
--- a/archivemail.py
+++ b/archivemail.py
@@ -35,8 +35,8 @@ import tempfile
import time
# global administrivia
-__version__ = "archivemail v0.10"
-__rcs_id__ = "$Id$"
+__version__ = "archivemail v0.1.0"
+__cvs_id__ = "$Id$"
__copyright__ = """Copyright (C) 2002 Paul Rodger <paul@paulrodger.com>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."""
@@ -121,7 +121,6 @@ class StaleFiles:
class Options:
"""Class to store runtime options, including defaults"""
archive_suffix = "_archive"
- warn_duplicates = 1
compressor = None
compressor_extension = None
days_old_max = 180
@@ -135,6 +134,7 @@ class Options:
script_name = os.path.basename(sys.argv[0])
use_modify_time = 0
verbose = 0
+ warn_duplicates = 0
def parse_args(self, args, usage):
"""Set our runtime options from the command-line arguments.
@@ -152,12 +152,14 @@ class Options:
["bzip2", "compress", "days=", "delete",
"dry-run", "gzip", "help", "output-dir=",
"quiet", "suffix", "modify-time", "verbose",
- "version"])
+ "version", "warn-duplicate"])
except getopt.error, msg:
user_error(msg)
for o, a in opts:
if o == '--delete':
self.delete_old_mail = 1
+ if o == '--warn-duplicate':
+ self.warn_duplicates = 1
if o in ('-n', '--dry-run'):
self.dry_run = 1
if o in ('-d', '--days'):
@@ -460,11 +462,11 @@ Options are as follows:
-m, --modify-time use file last-modified time as date for maildir messages
-n, --dry-run don't write to anything - just show what would be done
-o, --output-dir=DIR directory where archive files go (default: current)
- --ignore-dupe don't warn about mailboxes with duplicates messages
-z, --gzip compress the archive(s) using gzip (default)
-I, --bzip2 compress the archive(s) using bzip2
-Z, --compress compress the archive(s) using compress
--delete delete rather than archive old mail (use with caution!)
+ --warn-duplicate warn about duplicate Message-IDs in the same mailbox
-v, --verbose report lots of extra debugging information
-q, --quiet quiet mode - print no statistics (suitable for crontab)
-V, --version display version information