Drop caches after having processed folders.

This enhances a lot memory consumption when you have many folders
to process.

Signed-off-by: Giovanni Mascellani <mascellani@poisson.phc.unipi.it>
This commit is contained in:
Giovanni Mascellani
2014-01-05 16:07:03 +01:00
committed by Nicolas Sebrecht
parent 63e499c6f2
commit 29e9b7ab39
7 changed files with 20 additions and 0 deletions

View File

@ -125,6 +125,9 @@ class MappedIMAPFolder(IMAPFolder):
finally:
self.maplock.release()
def dropmessagelistcache(self):
self._mb.dropmessagelistcache()
# Interface from BaseFolder
def uidexists(self, ruid):
"""Checks if the (remote) UID exists in this Folder"""