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(name % "check_all_active: checking '%s'")
                    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)))
        return

    ##################################################################
    #
dataset/ETHPy150Open scanner/asimap/asimap/user_server.py/IMAPUserServer.check_all_active_folders/swapped operands of `%`