What problem does it solve? Stanford IT does not enable IMAP on Office 365 mailboxes, which blocks standard command-line mail clients. This Skill uses the Microsoft Graph API with device-code authentication to read, search, send, and sync Stanford email to a local Maildir without requiring IMAP access. ## Core Features & Use Cases - Local Maildir Sync: Download all mail folders into ~/Mail/Stanford/ for indexing with notmuch, mutt, or similar tools, with incremental sync based on stored timestamps. - Search and Read: Query the mailbox via the Graph $search endpoint and fetch individual messages by Graph ID, with HTML bodies stripped for terminal display. - Send and Draft: Send plain-text or HTML email with optional CC/BCC directly from the command line. - Use Case: Ask the agent to search your Stanford inbox for messages from a specific sender last week; it syncs the mailbox, runs a notmuch query, and summarizes the matching threads. ## Quick Start Ask the agent to search your Stanford email for recent messages about a specific topic, and it will authenticate, sync, and return matching results.