Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
email_sfs_delete_handler
What it is
Part of Email's attachment storage cleanup. A Lambda, triggered daily by EventBridge, that finds orphaned static file service (SFS) email attachments and enqueues delete messages for the SFS delete worker.
Start here
src/handler.rs: queriesemail_attachments_sfsfor rows with a NULLattachment_idand publishesSFSDeleteMessages.
Scope
- Owns: detecting orphaned SFS attachment rows and enqueuing their deletion.
- Not here: actually deleting from SFS or the DB row → the SFS delete worker
in
email_service(src/pubsub/sfs_deleter).
Checks
cargo test -p email_sfs_delete_handler(SQLX_OFFLINEunset).