diff --git a/gmail/email_count.py b/gmail/email_count.py index 06c88cb..d9da918 100644 --- a/gmail/email_count.py +++ b/gmail/email_count.py @@ -38,7 +38,7 @@ for account in accounts: resp_code, response = None, None print("Response Code : {}".format(resp_code)) - print("Response : {}\n".format(response[0].decode())) + #print("Response : {}\n".format(response[0].decode())) imap_ssl.select('inbox') resp_code, messages = imap_ssl.search(None, 'UnSeen') @@ -48,7 +48,8 @@ for account in accounts: # print(messages[0].split()) unread_messages = len(messages[0].split()) else: - print('False') + print('No unread emails?!') + unread_messages = 0 ############### Logout of Mailbox ###################### print("\nLogging Out....")