def open_mailbox_by_ptr(self, msg_ptr): if msg_ptr[:MBX_ID_LEN] == self.mbx_mid: return self.mailbox else: return BaseIndex.open_mailbox_by_ptr(self, msg_ptr)
def __init__(self, config, mailbox, mbx_mid=None): BaseIndex.__init__(self, config) self.mbx_mid = mbx_mid or self.FAKE_MBX_ID self.mailbox = mailbox self.ptrset = set([]) self.idxmap = []