A simple script to login to your imap mail account, fetch all IP-addresses of a directory and output it to a file. Useful for blocking IP-addresses in mail servers
Before running please edit the mail.py script and insert your mail account details, and output file info
Then run python mail.py