Skip to content

feat: mail draft create/reply/update/send in read-write mode - #2

Merged
ribaricplusplus merged 2 commits into
mainfrom
feat/mail-drafts-send
Nov 10, 2026
Merged

ribaricplusplus merged 2 commits into
mainfrom
feat/mail-drafts-send

Conversation

@ribaricplusplus

Copy link
Copy Markdown
Contributor

Adds outlook draft create / reply / update / send to read-write mode.

  • Read-write login now requests Mail.ReadWrite and Mail.Send in addition to the existing scopes. Both are optional: a connection without them stays valid and only hides the draft operations.
  • Sending goes only through an existing draft ID, with a preflight read (NOT_A_DRAFT, no recipients) and no automatic resend. Unknown outcomes return MUTATION_UNVERIFIED with the ID.
  • No mail delete, move or attachment commands.
  • Existing commands keep their JSON shapes; version 0.3.0.

Tests: 66 pass (38 before). Checked live against the TouchPoint mailbox: silent scope upgrade after admin consent, draft create and update, NOT_A_DRAFT guard on a real inbox message. Not yet checked live: draft reply and draft send.

Read-write login now also requests the optional Mail.ReadWrite and Mail.Send
scopes. The required minimum is unchanged, so existing three-scope connections
keep working: silent acquisition tries the full set and falls back to the
minimum. Sending always goes through an existing draft ID and is never retried.
@ribaricplusplus
ribaricplusplus merged commit 6100492 into main Nov 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant