Hello. There are 3 scripts here :
The first (pythonMail) checks if you have new mail and if so, creates a file "/tmp/newMailArrived".
The second one (pythonTmpMail) checks if there is a "/tmp/newMailArrived" file, and if so, runs the third script.
The third (pythonMailNotification) drops an icon in the "system tray",
to notify you that new mail has arrived.
Read the specific descriptions in the files, because you will need to edit them.
Dependencies : imaplib ,psutil, pyqt5.
Enjoy!