In this tutorial you’ll learn how to see if there is unread mail in your office 365 account using imap. — TL;DR , let’s dive in. First things first: what packages will we be using? Imaplib imaplib implements a client for communicating with Internet Message Access Protocol (IMAP) version 4 servers. The IMAP protocol defines a set of commands sent to the server and the responses delivered back to the client. …