def waitForMail(self, timeout=10):
        startTime = time.time()
        while True:
            if not self.isMailQueueEmpty():
                return True
            if time.time() > startTime + timeout:
                return False
            time.sleep(0.1)
:param name_or_addr: The logical name to connect to, e.g. "db-r"
dataset/ETHPy150Open girder/girder/tests/mock_smtp.py/MockSmtpReceiver.waitForMail--crossover with--dataset/ETHPy150Open paypal/support/support/connection_mgr.py/ConnectionManager.get_connection