Example #1
0
 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)
Example #2
0
 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)