From 9549c3e29d69346a8824475615d4dbb84f941dc9 Mon Sep 17 00:00:00 2001 From: Nikolaus Schulz Date: Tue, 31 Oct 2006 00:35:19 +0000 Subject: Minor code cleanup in build_imap_filter(). --- archivemail.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/archivemail.py b/archivemail.py index ccebc38..edde680 100755 --- a/archivemail.py +++ b/archivemail.py @@ -1022,12 +1022,10 @@ def build_imap_filter(): time_now = time.time() secs_old_max = (options.days_old_max * 24 * 60 * 60) time_old = time.gmtime(time_now - secs_old_max) - time_str = time.strftime('%d-%b-%Y', time_old) - filter.append("BEFORE %s" % time_str) else: time_old = time.gmtime(options.date_old_max) - time_str = time.strftime('%d-%b-%Y', time_old) - filter.append("BEFORE %s" % time_str) + time_str = time.strftime('%d-%b-%Y', time_old) + filter.append("BEFORE %s" % time_str) if not options.include_flagged: filter.append("UNFLAGGED") @@ -1035,7 +1033,6 @@ def build_imap_filter(): filter.append("LARGER %d" % options.min_size) if options.preserve_unread: filter.append("SEEN") - if options.filter_append: filter.append(options.filter_append) -- cgit v1.2.3