mirror of
https://git.code.sf.net/p/archivemail/code
synced 2025-01-03 05:34:58 +00:00
Let archivemail accept --days=0.
This commit is contained in:
parent
59e9715021
commit
aae08fe3fb
2 changed files with 3 additions and 2 deletions
|
@ -21,6 +21,7 @@ Version 0.7.1 - UNRELEASED
|
|||
deprecated; it will be removed from later versions.
|
||||
* Expand tilde in argument of long option --pwfile. (Thanks Christian
|
||||
Brabandt) Closes: Debian bug #434813
|
||||
* archivemail now accepts --days=0
|
||||
|
||||
Version 0.7.0 - 2 November 2006
|
||||
* Fixed long options --filter-append and --pwfile to accept their arguments.
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue