plugin maildir: replaced forgotten setPrivate by PersistentBinaryDict.force

This commit is contained in:
Goffi 2011-12-04 00:03:15 +01:00
commit a49ef39806

View file

@ -161,7 +161,7 @@ class MaildirBox():
box_data['cur_idx']+=1
box_data[message_id]=[box_data['cur_idx'],[]]
ret = box_data[message_id]
self.host.memory.setPrivate('MAILDIR_data',self.data)
self.data[profile].force(boxname)
return ret
def getNextUid(self, boxname, profile):
@ -227,7 +227,7 @@ class MaildirBox():
if not box_data.has_key(mess_id):
raise MailboxException("Trying to set flags for an unexisting message")
box_data[mess_id][1]=flags
self.host.memory.setPrivate('MAILDIR_data',self.data)
self.data[profile].force(boxname)
def getMessageIdsWithFlag(self, boxname, flag, profile):
"""Return ids of messages where a flag is set
@ -252,7 +252,7 @@ class MaildirBox():
box_data = self.__getBoxData(boxname, profile)
for mess_id in self.getMessageIdsWithFlag(boxname,"\\Deleted", profile):
del(box_data[mess_id])
self.host.memory.setPrivate('MAILDIR_data',self.data)
self.data[profile].force(boxname)
def cleanTable(self, boxname, existant_id, profile):
"""Remove mails which no longuer exist from the table