def next(): while True: res = emailio.get() if res != "" and type(res) == str: return res[res.find("Content-Type: text/plain; charset=UTF-8"):] time.sleep(5)
def scan_email(): res = emailio.get() if res != "" and type(res) == str: return res[res.find("Content-Type: text/plain; charset=UTF-8"):] else: return ""