def check_all_active_folders(self): """ Like 'check_all_folders' except this only checks folders that are active and have clients in IDLE listening to them. """ for name, mbox in self.active_mailboxes.iteritems(): if any(x.idling for x in mbox.clients.itervalues()): try: self.log.debug("check_all_active: checking '%s'" % name) mbox.resync() except (MailboxLock, MailboxInconsistency), e: # If hit one of these exceptions they are usually # transient. we will skip it. The command processor in # client.py knows how to handle these better. # self.log.warn("check-all-active: skipping '%s' due to: " "%s" % (name, str(e)))