fix inaccurate UI messages when some messages are excluded from the cached lists
Some messages were excluded from the copy/delete list after the UI message said they were copied/deleted. Also fix Internaldate2epoch(), which was wrong. Signed-off-by: Janna Martl <janna.martl109@gmail.com> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:

committed by
Nicolas Sebrecht

parent
03114b1867
commit
428349e3f4
@ -222,6 +222,8 @@ def Internaldate2epoch(resp):
|
||||
|
||||
Returns seconds since the epoch."""
|
||||
|
||||
from calendar import timegm
|
||||
|
||||
mo = InternalDate.match(resp)
|
||||
if not mo:
|
||||
return None
|
||||
@ -245,4 +247,4 @@ def Internaldate2epoch(resp):
|
||||
|
||||
tt = (year, mon, day, hour, min, sec, -1, -1, -1)
|
||||
|
||||
return time.mktime(tt)
|
||||
return timegm(tt) - zone
|
||||
|
Reference in New Issue
Block a user