add some feedback

This commit is contained in:
Jan Grewe 2019-08-21 20:35:44 +02:00
parent 160ce3f649
commit 29d2105d65

View File

@ -278,7 +278,7 @@ def check_for_mails():
try:
rv, data = M.login(EMAIL_ACCOUNT, EMAIL_PSWD)
except imaplib.IMAP4.error:
print ("LOGIN FAILED!!! ")
print("LOGIN FAILED!!! ")
sys.exit(1)
# rv, mailboxes = M.list()
# if rv == 'OK':
@ -299,6 +299,6 @@ def check_for_mails():
if __name__ == "__main__":
while True:
print("%s: Checking for new registrations mails!" % dt.datetime.now().isoformat())
check_for_mails()
time.sleep(60)