Midtown Toy Chest

Mail Triage

Inbox triage, delegated mail actions, and machine-friendly output for personal and shared mailbox workflows.

Scope

Supports `Mail.ReadBasic` for scanning, plus delegated write and shared-mail bundles for mutate and send workflows.

Commands

  • inbox and senders for scanning and clustering
  • read, unread, move, and delete for inbox actions
  • send for personal and shared mailbox sends
  • --output json for automation

Auth

Built on the shared `MTG Shared Microsoft Auth` package with WAM-first sign-in on Windows.

Quick Start

$env:MAIL_TRIAGE_CLIENT_ID='e02be6f7-063a-46a6-b2cc-109d5f51055c' $env:MAIL_TRIAGE_TENANT_ID='a3599b15-c39c-4b41-a219-7e24dd5b5190' $env:MAIL_TRIAGE_SCOPES='Mail.ReadWrite,Mail.Send' $env:MAIL_TRIAGE_AUTH_MODE='wam' $env:MAIL_TRIAGE_ALLOW_BROKER='true' .\invoke.ps1 inbox --unread-only --limit 10 .\invoke.ps1 send --to person@example.com --subject "Status" --body "Hello"