Simple Python script that checks your mail and displays a notification if anything in your inbox is unread.
Requires Zenity and IMAPClient.
sudo apt install -y zenity imapclient
After that, edit the HOSTNAME, USERNAME, AND PASSWORD fields to match the server, email, and password of your email account. Then you can run the script.