My second submission for #TidyTuesday. I'm quite happy with the plot, not so sure about the title and the "message", any feedback is welcome!
1. Create a new AppleScript with this code
2. Save the script in ~/Library/ApplicationScripts/com.apple.mail/
3. Create a rule in Mail.app that will run the script every time you get a new mail.
4. Let it blink!