Access with clear boundaries
Emailgents reads and indexes connected mail, supports specific mail and calendar actions, and keeps automatic mailbox cleanup opt-in. What it can change depends on provider permissions, calendar capabilities and the controls you enable.
Read tools and specific writes
Per-mailbox permissions control flags, archive, recoverable Trash, provider labels and Send. Ordinary plain-text send/reply requires native Google or Microsoft OAuth; app-password and legacy connections are unsupported. Calendar writes retain their separate permission. Treat email content as untrusted.
Least privilege per connection
MCP connections are tied to your signed-in account through OAuth. REST keys can be limited to chosen mailboxes and read access; flag changes and calendar writes require their respective key scopes. Provider grants and calendar capabilities are checked separately from these app permissions.
Credentials encrypted at rest
App-specific passwords and OAuth refresh tokens are encrypted with keys that never leave the server, decrypted server-side when needed to sync or carry out a supported provider request.
Index, not archive
The index holds headers, folders, flags, thread references, attachment metadata and snippets. The initial history window defaults to 90 days and is configurable; searches can index older provider matches. Bodies are fetched on open and in bounded background passes. Encrypted body caching and searchable body words have separate per-mailbox controls. With body indexing on, text in PDFs and text files is extracted server-side and added to search; images and scanned PDFs go to the AI service only if you turn on AI reading. Extracted attachment text and calendar details are stored encrypted.
Every access logged
Each tool call and API request is recorded with the actor, tool, sanitized metadata and a correlation id on your Activity page. Outgoing recipients, subject and body are omitted.
Provider-native revocation
You can revoke Google or Microsoft grants and app-specific passwords at the provider. Removing a mailbox from Emailgents deletes its local credentials, index, cached bodies and associated calendar records, not the provider's mail or events. Revoking provider access alone does not erase the Emailgents index.
What each provider connection can do
- Native Google consent: identity scopes, gmail.modify, calendar, contacts.readonly and contacts.other.readonly. Mail modification supports flags, archive and supported cleanup; calendar access supports available calendar writes. Contacts access supports lookup and photos.
- Native Microsoft consent: identity/session scopes including User.Read, Mail.ReadWrite, Mail.Send, MailboxSettings.Read, Calendars.ReadWrite and Contacts.Read. This requests mail modification and sending, category catalogue reading, calendar writing and contact reading.
- iCloud and other IMAP connections use provider credentials over TLS, not granular OAuth scopes. Flags, archive and cleanup depend on the server; calendar and calendar-reply support require a usable calendar or sending connection. Capabilities vary by provider and account.
Requested scopes are not a list of enabled actions. Granted scopes are checked per surface; older connections may differ. Housekeeping stays off until you save enabled rules. Inbox optimization adds local categories and labels and does not itself modify provider folders.
Actions and limits
- App, MCP and REST share bounded archive, recoverable Trash, flags and provider-label operations. Agents need per-mailbox permission; REST also checks key scopes. Permanent removal remains separate opt-in housekeeping.
- Connected writable calendars support available create, edit and delete actions. Agent tools expose creation and RSVP, not general calendar editing or deletion.
- RSVPs may use a provider event, a looked-up or imported copy, or a standard calendar reply email. Results report the route, local-only outcomes and provider success or failure. Provider acceptance or a response reported as sent is not an independent receipt from the organizer; an imported copy alone does not verify notification.
- Plain-text send/reply uses native Google/Microsoft OAuth with replay protection. App-password and legacy sending are unsupported. Provider acceptance is not delivery; uncertain sends require a status check. Message views require sign-in.
- No training on your mail and no selling of data.
Transparency
- Every tool advertises readOnlyHint and idempotentHint annotations so clients can show the right confirmation prompts.
- Search and thread answers carry coverage and freshness so an agent never presents a partial view as complete.
- Errors are structured and never leak credentials or raw provider responses; each carries a correlation id you can quote to us.
Security questions
Can an email trick my agent into taking action?
Email content is untrusted and can influence an agent. Keep unnecessary per-mailbox writes disabled, including Send, and review action results. Permission controls and an access log do not stop every prompt injection.
Where does the data live?
The service stores a searchable metadata index in a managed database. Credentials, cached message bodies, extracted attachment text and calendar details are encrypted with AES-256-GCM; searchable words and metadata are not stored as encrypted bodies. The app also keeps a per-user browser cache, cleared on sign-out.
What do retention controls remove?
Body-retention rules evict eligible encrypted cached bodies, and the attachment text stored with them, in batches, preserving starred and invitation-bearing mail. They do not erase indexed search words or provider mail. Disabling body indexing stops future body and attachment indexing, not existing entries; changing the sync history window does not purge old rows.
What happens when I disconnect a mailbox?
Its Emailgents credentials, index, cached bodies and associated calendar records are deleted. Mail and events at the provider remain. Revoking a grant at the provider alone does not remove the Emailgents index, and provider deletions are reconciled by sync rather than an immediate cache-erasure guarantee.