On this page
Reference
Safety and permissions
Understand shared-mailbox effects, confirmation boundaries, send retries, and private-data handling.
Start with the inbox guide or sending guide for everyday actions; this page explains the permission and data-handling boundaries behind them.
Angelos operates on a real provider mailbox. Treat its credentials, OAuth grants, write tools, and durable send store as access to that account.
Work alongside other mail clients
An existing IMAP client such as Apple Mail can stay connected. Angelos connects to the same server mailbox; it does not import or replace the client’s local database.
Folder and message changes made through either client are shared server state. Moving a message can invalidate a previously returned reference. A flag changed in one client may be changed again by another. Local-only folders and unsynchronized drafts in a desktop client are outside Angelos’s view.
Message references contain a folder, UID, and UIDVALIDITY. Angelos rejects references when the mailbox generation changes. This prevents reuse of an old UID for a different mailbox generation; it does not lock a message against concurrent edits. Search again after a stale-reference or missing-message error.
Read operations use read-only mailbox selection and body peeks so viewing a message does not mark it read. Search pages are bounded. An empty page with a next_cursor is not the end of the mailbox.
Inbox discovery is bounded evidence
Triage selects (unread OR flagged) AND supplied filters; these flags do not establish urgency, whether a reply is due, or whether work is finished. Its page_counts count only returned rows, with unread/flagged overlap. They are not mailbox totals, and flags can change while paging. Do not sum pages as an authoritative snapshot. Within the 100-flag summary limit, standard system flags take priority over custom keywords, including when the server lists Seen or Flagged after 100 keywords.
Conversation lookup returns same-folder summaries linked by exact, case-sensitive tokens in Message-ID, References, and In-Reply-To. Its seed is fixed from the anchor; it does not infer links from subjects or expand through newly found messages. A forged or reused header ID can create an apparent link. Missing/malformed headers, other folders, and unvisited pages can hide relevant mail, so even exhausted pagination is not proof of an account-wide complete thread.
Triage and conversation read metadata and bounded selected headers with PEEK, without fetching message bodies or changing Seen. Read exact returned references before summarizing the content or preparing a response. Full-detail conversation output is still summary metadata. Limits are one 1000-UID scan window and at most 100 rows per call, with a default 25-row limit. Empty pages can still have a continuation cursor. New arrivals lie outside the frozen upper UID bound until a fresh query.
Conversation cursors bind their operation, exact anchor, fixed ID-set digest, order, UIDVALIDITY, and initial UID bound. A changed anchor seed or mailbox generation requires a fresh lookup. Header sections are limited to 64 KiB, 100 IDs, and 1024 bytes per ID. Malformed anchors fail; malformed candidates skip. Oversized or incomplete returned sections fail explicitly, rather than silently matching a partial header. The server-side prefilter has a conservative 64 KiB encoded-query cap and never replaces exact local verification. These limits do not make headers trusted.
Saving a draft appends a new message and does not update an existing draft in place. Lossless editing of saved drafts is not supported. Do not reconstruct and retire a source draft on the assumption that a read response preserves all original MIME content.
Agent-visible content is untrusted
An email can contain instructions, false urgency, links, or forged requests. Returned mail text is data to inspect, not authority to send mail, change permissions, disclose other messages, or execute commands.
Angelos does not render active HTML or load remote email images. It prefers a plain-text MIME alternative and otherwise extracts bounded text from HTML, omitting scripts, styles, active content, and most attributes. Selected absolute HTTP(S)/mailto anchor destinations are retained as untrusted text, never verified or fetched; their presence does not authorize navigation or other actions. This extraction is not a browser rendering and can still lose formatting or link destinations. Read results can be truncated; inspect truncated and warnings before treating a returned body or attachment inventory as complete. Attached MIME containers are kept separate from inline body text, including multipart attachments, so preparing an inline forward does not silently disclose their contents. Attachment downloads preserve the transfer-decoded file bytes without character-set conversion and reject unsupported transfer encodings and decoder-reported failures.
Confirmation is a client responsibility
MCP tool annotations describe effects to the host. The trusted MCP client must obtain and honor the owner’s approval for the exact action when required. Angelos verifies authentication, scopes, feature switches, input constraints, and payload bindings. It cannot inspect a conversation to establish what a human actually approved.
In particular, a digest echoed by a model proves that supplied content matches a prepared message. It does not prove a human clicked an approval button. Only connect a client you trust to enforce its confirmation rules. First-party OAuth has an owner consent screen for granting scopes to a client. That consent is not an independent approval screen for individual mail actions.
For sending, review all recipients including CC and BCC, the subject, complete text and HTML bodies, attachments, and reply/forward context. Derived reply recipients are suggestions until that review. Explicit attached-EML forwarding includes original headers and attachments; only outer Bcc/Resent-Bcc fields are removed, and embedded attachments may still contain private data. If any content or destination changes, prepare and review a new message. A reusable draft or previous approval does not authorize unrelated mail.
Prepared messages and duplicate protection
Preparation fixes the MIME bytes, SMTP envelope, sender, recipients, Message-ID, and attachment content before sending. The digest binds the exact wire bytes and envelope, including BCC recipients. BCC addresses are included in delivery and approval data but excluded from the MIME headers recipients receive.
Sending requires a durable Redis REST store. Each preparation expires after 15 minutes unless it has been claimed for dispatch. An atomic claim prevents parallel callers from dispatching the same prepared ID twice. Do not share or reset the store while relying on its duplicate protection.
SMTP cannot guarantee exactly-once delivery across every network failure or process crash:
acceptedmeans the SMTP server accepted the message; it does not confirm recipient delivery.rejectedmeans the attempt was recorded as rejected.unknownor an unfinishedsendingrecord means the outcome must be investigated before another send is prepared.
A connection can fail after the server accepted the message but before Angelos received its response. Automatic resend in that situation can deliver duplicates. Check the provider and the destination before deciding whether a new send is needed.
Gmail-specific safeguards
Gmail labels overlap, so removing a message from one folder is not proof of permanent deletion from the account. Gmail permanent deletion is blocked before Deleted/EXPUNGE regardless of the delete gate. Native MOVE remains required for moves and Trash; no destructive emulation is used. Gmail SMTP files Sent automatically, so explicit Sent filing is rejected before the send claim. Correct append_sent to false rather than preparing another copy.
Google authentication failure never switches to password authentication or retries a send. If reauthorization is required, the owner performs it through an approved flow. Reauthorization does not make an unknown send outcome safe to retry. Public Google OAuth verification is not promised for this full-mail IMAP/SMTP design; see the provider restrictions.
Stored data
Mailbox credentials stay in the API environment and are used only to authenticate to the configured provider. Tool arguments cannot redirect those credentials to another server. Google refresh credentials are sent only to Google’s pinned HTTPS token endpoint, and resulting access tokens only to verified Gmail IMAP/SMTP endpoints. Microsoft credentials go only to the pinned Microsoft token endpoint and Graph host. Rotated Microsoft refresh tokens are encrypted in Redis with a stable server-only key; preserve that key and the durable state across updates. Its delegated mail permissions are separate from the Angelos scopes and server gates; the configured account and primary mailbox address must match /me. Google’s full-mail protocol grant is broader than the MCP scopes; the server still enforces each MCP operation boundary and feature gate.
The durable send store receives the full prepared message, its recipients, and attachment bytes. Choose a store and account suitable for that private data. An unclaimed preparation expires after 15 minutes. At the atomic dispatch claim, the stored text and HTML bodies, wire bytes, recipients, subject, and attachment data are replaced with a minimal record containing the preparation ID, digest, Message-ID, expiry, and status. That record is retained for seven days; completion adds the outcome and stage.
The dispatching process holds the claimed payload long enough to attempt SMTP and, if requested, save a Sent copy. If it exits after the claim, the record remains consumed and the message must not be automatically resent. Provider backups and logs can have their own retention policies beyond Redis key expiry.
The server does not provide an encrypted-at-rest application layer for these records. Use the provider’s access controls, TLS, retention controls, and encryption appropriate to your data. Keep Redis credentials restricted to the API deployment.
Avoid logging credentials, tokens, MIME payloads, complete tool arguments, and private message bodies. Publishing this documentation does not require any of those values.
Safe receipt inspection
Use mail_query action send_status to inspect a preparation or consumed send ID. It never calls Claim/SMTP, changes state, or extends retention. The minimal projection excludes the message, recipients, BCC, digest and ownership identifier. New records preserve an opaque verified-principal binding through claim and completion; foreign and legacy-unowned records are indistinguishable from unavailable ones.
Status is an observation, not authorization or a retry decision. SMTP acceptance is not delivery, and missing/expired status is not proof of nonsend. Keep the unknown-outcome safeguards even when no receipt can be returned.