mail login
This commit is contained in:
parent
2f8085109f
commit
871d9abf98
7
main.py
7
main.py
@ -6,6 +6,13 @@ from sqlalchemy import create_engine
|
||||
|
||||
config = configparser.ConfigParser().read('config.ini')
|
||||
db = create_engine(f"postgresql://{config['db']['username']}:{config['db']['password']}@{config['db']['host']}/{config['db']['database']}")
|
||||
mail = IMAP4(host=config['mail']['host'])
|
||||
|
||||
|
||||
def get_gpx_files_from_mail():
|
||||
mail.login(config['mail']['username'], config['mail']['password'])
|
||||
|
||||
mail.logout()
|
||||
|
||||
|
||||
def main():
|
||||
|
Loading…
x
Reference in New Issue
Block a user