from higher_functions import *
from lower_functions import *

while True:

    Pref, CheckEmail = Download_Email()

    print("Email Checked")

    if CheckEmail:

        print('Found')

        Pref = Pref.split('-')

        print('tipo: ', Pref[0])

        if Pref[0].lower() == 'word' : size_file = DanielaWord(Pref);

        if Pref[0].lower() == 'excel' : size_file = DanielaPPTX(Pref);

    else:

        print("Not found")


    if CheckEmail: Send_Email(Pref[0], size_file);

    if CheckEmail: Delete_Email()

    if CheckEmail: print('email sent')

    break

    print("Sleep...")
    time.sleep(120)

db3a2110ba5432bcb86562aae3633e9e33817314
<mask token>

<mask token>
while True:
    Pref, CheckEmail = Download_Email()
    print('Email Checked')
    if CheckEmail:
        print('Found')
        Pref = Pref.split('-')
        print('tipo: ', Pref[0])
        if Pref[0].lower() == 'word':
            size_file = DanielaWord(Pref)
        if Pref[0].lower() == 'excel':
            size_file = DanielaPPTX(Pref)
    else:
        print('Not found')
    if CheckEmail:
        Send_Email(Pref[0], size_file)
    if CheckEmail:
        Delete_Email()
    if CheckEmail:
        print('email sent')
    break
    print('Sleep...')
    time.sleep(120)

from higher_functions import *
from lower_functions import *
while True:
    Pref, CheckEmail = Download_Email()
    print('Email Checked')
    if CheckEmail:
        print('Found')
        Pref = Pref.split('-')
        print('tipo: ', Pref[0])
        if Pref[0].lower() == 'word':
            size_file = DanielaWord(Pref)
        if Pref[0].lower() == 'excel':
            size_file = DanielaPPTX(Pref)
    else:
        print('Not found')
    if CheckEmail:
        Send_Email(Pref[0], size_file)
    if CheckEmail:
        Delete_Email()
    if CheckEmail:
        print('email sent')
    break
    print('Sleep...')
    time.sleep(120)

from higher_functions import *
from lower_functions import *

while True:

    Pref, CheckEmail = Download_Email()

    print("Email Checked")

    if CheckEmail:

        print('Found')

        Pref = Pref.split('-')

        print('tipo: ', Pref[0])

        if Pref[0].lower() == 'word' : size_file = DanielaWord(Pref);

        if Pref[0].lower() == 'excel' : size_file = DanielaPPTX(Pref);

    else:

        print("Not found")


    if CheckEmail: Send_Email(Pref[0], size_file);

    if CheckEmail: Delete_Email()

    if CheckEmail: print('email sent')

    break

    print("Sleep...")
    time.sleep(120)
