aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolaus Schulz <microschulz@web.de>2006-10-31 00:35:19 +0000
committerNikolaus Schulz <microschulz@web.de>2006-10-31 00:35:19 +0000
commit9549c3e29d69346a8824475615d4dbb84f941dc9 (patch)
tree324e065cba9b3bac519b82478372eedf54af9e49
parent0b40278a78962370cef5537711b520c61ea5cc64 (diff)
downloadarchivemail-9549c3e29d69346a8824475615d4dbb84f941dc9.tar.gz
archivemail-9549c3e29d69346a8824475615d4dbb84f941dc9.tar.bz2
archivemail-9549c3e29d69346a8824475615d4dbb84f941dc9.zip
Minor code cleanup in build_imap_filter().
-rwxr-xr-xarchivemail.py7
1 files 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)