I mean you're right, I coded it quick in bash. The actual `grep` is of course bulletproof but I don't have a bulletproof notification system. If I was on a local unix machine I'd use `mail` but I mostly check gmail. I can use a simple smtp bridge but it's not always reliable
I've been meaning to set up automated testing where it sends an email every day and then I use something like google apps script to make sure it goes through. Like a cronjob checker but for email, maybe it already exists