def _has_mailbox_changed(self, mbx, state): pop3 = self.session.config.open_mailbox(self.session, FormatMbxId(mbx._key), prefer_local=False) state['stat'] = stat = '%s' % (pop3.stat(), ) return (self.event.data.get('mailbox_state', {}).get(mbx._key) != stat)
def _has_mailbox_changed(self, mbx, state): pop3 = self.session.config.open_mailbox(self.session, FormatMbxId(mbx._key), prefer_local=False) state['stat'] = stat = '{0!s}'.format(pop3.stat() ) return (self.event.data.get('mailbox_state', {}).get(mbx._key) != stat)