I wanted an inbox-zero goal, but don’t use Gmail—I’m on Fastmail. So I made a script that does basically the same thing! I have it pulling “total count”, not “unread count”, though. The script is visible here:
And here’s my fresh new inbox-zero goal that it’s feeding.
Technically it’s not just Fastmail that it could work with, it’s any email provider that uses JMAP for programmatic access, but that appears to be not too many things just yet. Nevertheless! Maybe someone other than me will find it useful. This jmap proxy apparently exists; I’ve never tried but it looks reasonable on the face of it so maybe you could spin something like that up?
Comments, questions, and merge requests very welcome!