email: per-mailbox captured/matched counts on Email Capture (v0.1.0:65)

/api/email/accounts now returns captured + matched per account (from the per-mailbox
sighting table email_account_messages joined to emails; emails dedupe globally so an
email seen by two mailboxes counts for each). Each mailbox card on the Email Capture
page shows "<N> captured · <M> matched" so per-user coverage is visible, not just the
aggregate. Verified in preview with two seeded mailboxes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Keysat
2026-06-07 23:10:51 -05:00
parent 069e60053b
commit 701e37b579
5 changed files with 39 additions and 4 deletions
+3 -2
View File
@@ -29,8 +29,9 @@ export const PACKAGE_TITLE = 'Ten31 Database'
// * 0.1.0:61 (Email Capture: live backfill progress + auto-refresh)
// * 0.1.0:62 (fix backfill crash on no-Reply-To emails; Sync now retries errored mailboxes)
// * 0.1.0:63 (System Status: storage usage — DB, attachments, backups, disk free)
// * Current: 0.1.0:64 (email-activity agent: propose->review->approve grid notes; sync ~15 min)
export const PACKAGE_VERSION = '0.1.0:64'
// * 0.1.0:64 (email-activity agent: propose->review->approve grid notes; sync ~15 min)
// * Current: 0.1.0:65 (Email Capture: per-mailbox captured/matched counts)
export const PACKAGE_VERSION = '0.1.0:65'
export const DATA_MOUNT_PATH = '/data'
export const WEB_PORT = 8080