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

@@ -61,7 +61,6 @@ class MaildirFolder(BaseFolder):
super(MaildirFolder, self).__init__(name, repository)
self.dofsync = self.config.getdefaultboolean("general", "fsync", True)
self.root = root
self.messagelist = {}
# check if we should use a different infosep to support Win file systems
self.wincompatible = self.config.getdefaultboolean(
"Account "+self.accountname, "maildir-windows-compatible", False)
@@ -244,10 +243,6 @@ class MaildirFolder(BaseFolder):
min_uid=min_uid)
self.ui.messagelistloaded(self.repository, self, self.getmessagecount())
# Interface from BaseFolder
def getmessagelist(self):
return self.messagelist
# Interface from BaseFolder
def getmessage(self, uid):
"""Return the content of the message."""