Imap Usage
from MailToolsBox.imapClient import ImapAgent
EMAIL_ACCOUNT = "myaddressgmail.com"
PASSWORD = "mypassword"
SERVER_ADDRESS = ('my server address or domain name or ip ex:"imap.gmail.com" ')
x = ImapAgent(email_account=EMAIL_ACCOUNT, password=PASSWORD, server_address=SERVER_ADDRESS)
x.download_mail_text() optional parameter : (lookup='ALL',save=True,path='/home/user/')
x.download_mail_json() return json format | optional parameter : (lookup='ALL',save=True,filename='filename.json',path='/home/user/')
x.download_mail_msg() optional parameter : (lookup='ALL',path='/home/user/')