How to Solve NameError: name 'MailBox' is not defined -- imap_tools
Solution: Import the 'MailBox' module
To Solve the error, add the following line to the top of your code.
from imap_tools import MailBox
For more information:
Python imap_tools MailBox