This is a simple SwiftBar script to show unread-emails in menu-bar.
We use it for showing emails count from our error logs. In Django, all the errors are forwarded to an email. This shows the count of unhandled errors.
We archive the emails once the error has been handled.
pip install python-dotenv
Then copy the script in your SwiftBar Scripts folder.