Schema for per-mailbox storage measurement

FeatureInitializerService
Shipped
August 9, 2026 at 5:23 AM UTC
Author
Kamo
Commit
5fa6688

**************** holds, per mailbox and per arrival day, the RFC822 bytes that mailbox is holding. Storage accounting had no honest source for mailbox bytes: the search index covers only messages that were indexed, and covers them regardless of who stores them. ORG_ID is denormalized from email_provider.mailboxes so per-organization aggregation is one indexed sum, and so attribution stays per mailbox — several organizations can be on KamoMail at once and one domain's maildir can hold mailboxes belonging to different organizations. Run against production 2026-08-08; table and indexes verified.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing