Throughout the chapter, we have been talking about sending e-mails with Python. However, at some point, you might also want to scan through your inbox and read the incoming messages. So, how do you do that? Let's understand and learn it in this recipe.
In this recipe, we use a new Python module that will help us retrieve messages from the inbox. We use the Python module,
imaplib, which is available in the default Python installation. Cool, so let's get started.