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:
Janna Martl
2015-03-21 02:15:25 -04:00
committed by Nicolas Sebrecht
parent 03114b1867
commit 428349e3f4
4 changed files with 28 additions and 20 deletions

View File

@ -836,8 +836,6 @@ class IMAPFolder(BaseFolder):
self.__deletemessages_noconvert(uidlist)
def __deletemessages_noconvert(self, uidlist):
# Weed out ones not in self.messagelist
uidlist = [uid for uid in uidlist if self.uidexists(uid)]
if not len(uidlist):
return