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)
Waits for mail to appear on the queue. Returns "True" as soon as the
dataset/ETHPy150Open girder/girder/tests/mock_smtp.py/MockSmtpReceiver.waitForMail