# HG changeset patch # User Goffi # Date 1322953395 -3600 # Node ID 1c1d1a4994c4da8e992653a352767627af8d85b4 # Parent d67cae85c2f981effa846448fc7811b2a1fc2bbc plugin maildir: replaced forgotten setPrivate by PersistentBinaryDict.force diff -r d67cae85c2f9 -r 1c1d1a4994c4 src/plugins/plugin_misc_maildir.py --- a/src/plugins/plugin_misc_maildir.py Sat Dec 03 23:43:10 2011 +0100 +++ b/src/plugins/plugin_misc_maildir.py Sun Dec 04 00:03:15 2011 +0100 @@ -161,7 +161,7 @@ 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 @@ 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 @@ 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