Example #1
0
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)
Example #2
0
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 ""