folder: properly factorize initialization and dropping of self.message

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht
2016-04-09 18:12:18 +02:00
parent 9486a0dab3
commit 657f258196
6 changed files with 8 additions and 34 deletions

View File

@ -122,7 +122,7 @@ class GmailFolder(IMAPFolder):
return super(GmailFolder, self).cachemessagelist(
min_date=min_date, min_uid=min_uid)
self.messagelist = {}
self.dropmessagelistcache()
self.ui.collectingdata(None, self)
imapobj = self.imapserver.acquireconnection()