Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

594 B
Raw Blame

Gmail Refresh Handler

To keep inbox update push notifications coming from email providers, we need to hit provider-specific endpoints like users.watch for each subscribed user once per day. The refresh handler is triggered by eventbridge once per hour, grabbing a subset of the emails that we have a subscription active for. It puts these emails on an SQS queue, which then get picked up by a listener in email-service that hits the necessary endpoint for each email. Each email is processed once per day.