New email notification / webhook


#1

I’ve built an app in which each user gets their own unique email address. I’m using MIAB to make that happen. Right now, emails are being fetched only when a user opens the app. It opens an IMAP connection, fetches new mail, then closes the connection. The backend is Firebase.

I’d like to move to push email. Ideally, every time a new email came into MIAB, I could communicate this to Firebase through a webhook.

Alternatively, I supposed I’d have to build a “faceless” IMAP client that could maintain an open connection, then kick off the push process through Firebase.

Or, perhaps I’m thinking about it all wrong. Open to ideas, and, figured I’d ask if anyone here had any!

The app is called Stoop, btw.