diff options
author | Nikolaus Schulz <microschulz@web.de> | 2007-11-02 21:18:23 +0000 |
---|---|---|
committer | Nikolaus Schulz <microschulz@web.de> | 2007-11-02 21:18:23 +0000 |
commit | aae08fe3fbe9b2349b1884ae120e4f2b92ca232f (patch) | |
tree | 91ea536ba217043177b75483246e3eb97e361897 /archivemail.py | |
parent | 59e9715021ad90fb9a7692318e04cb7426bf8f5e (diff) | |
download | archivemail-aae08fe3fbe9b2349b1884ae120e4f2b92ca232f.tar.gz archivemail-aae08fe3fbe9b2349b1884ae120e4f2b92ca232f.tar.bz2 archivemail-aae08fe3fbe9b2349b1884ae120e4f2b92ca232f.zip |
Let archivemail accept --days=0.
Diffstat (limited to 'archivemail.py')
-rwxr-xr-x | archivemail.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archivemail.py b/archivemail.py index b52187e..5bdd722 100755 --- a/archivemail.py +++ b/archivemail.py @@ -275,8 +275,8 @@ class Options: """Complain bitterly about our options now rather than later""" if self.output_dir: check_sane_destdir(self.output_dir) - if self.days_old_max < 1: - user_error("--days argument must be greater than zero") + if self.days_old_max < 0: + user_error("--days argument must be positive") if self.days_old_max >= 10000: user_error("--days argument must be less than 10000") if self.min_size is not None and self.min_size < 1: |