Minor code cleanup in build_imap_filter().
This commit is contained in:
parent
0b40278a78
commit
9549c3e29d
|
@ -1022,8 +1022,6 @@ 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)
|
||||
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue