Saves all new incoming email sender addresses to a txt or csv file for later use or reference
Imports needed:
import time
import datetime
import email
import imaplib
Follow simple instructions here under "Create and use App Passwords"
Make sure the txt file is in the same directory as the code before running!
I use keyring for storing my email and app password so I don't have to hard-code it
import keyring
#####################################
If you want to write to csv rather than a txt file
import csv