Provider Behaviour
iobox normalises results across providers, but the underlying services differ. This page lists the differences that affect what you get back.
Gmail¶
- Searches all mail, not just the inbox. Use
in:inboxto narrow. - Query syntax is native Gmail search (
from:,has:attachment,newer_than:7d,label:, …). - Labels map to iobox tags. Nested labels use
/(Clients/Acme). - Rate-limited batch fetches are retried automatically.
| Mode | Scopes |
|---|---|
| read-only | gmail.readonly |
| read-write | gmail.modify, gmail.compose |
Google Calendar¶
- Events come from the primary calendar only.
- All-day events use a
date(2026-04-01); timed events use an ISO datetime. meeting_urlis taken from the Google Meet link or the conference entry points.- Incremental sync is available in the SDK via
get_sync_state()/get_new_events(token).
| Mode | Scope |
|---|---|
| read-only | calendar.readonly |
| read-write | calendar |
Google Drive¶
- Lists files in My Drive (
corpora=user); trashed files are excluded. delete_filemoves to trash by default;permanent=Truedeletes immediately.- Text extraction:
| Type | Content returned |
|---|---|
text/* |
Downloaded as-is |
| Google Docs | Exported as plain text |
| Google Sheets | Exported as CSV |
| Google Slides | Exported as plain text |
| Other binary files | Metadata only — use download_file for the bytes |
| Mode | Scope |
|---|---|
| read-only | drive.readonly |
| read-write | drive |
Outlook¶
- Searches every folder (
/me/messages: Inbox, Sent, Archive, Drafts, custom folders). Deleted Items and Junk Email are excluded unlessinclude_spam_trashis set (--include-spam-trashon the CLI). With a text/KQL query this exclusion is applied client-side, so iobox pages through extra results (up to 250, or 5 ×max_results) to fillmax_results. - Query syntax is Microsoft Graph
$search(KQL). Structured filters (from, to, dates, attachments) use$filter; Graph can't combine$searchwith$filter/$orderby, so when both are needed unread/category filters and ordering are applied client-side. - Message IDs are ImmutableIds (
Prefer: IdType="ImmutableId"on every Graph request), stable across folder moves. - Categories map to iobox tags.
- Bulk operations (mark read, archive, trash, tag) use Graph
$batch. Throttled items (HTTP 429) are retried up to 3 times, honouringRetry-After(capped at 30 s); items that still fail are reported together after the whole batch has run. - Incremental sync (SDK
get_sync_state()/get_new_messages()) uses a Graph delta link on the Inbox; an expired delta link triggers a full re-sync.iobox save --syncuses the provider-neutral query window instead. - Attachments on new drafts and sent messages: small files go in the create request; once they total more than 3 MB the rest are added to the saved draft, files over 3 MB through a chunked upload session. Sending always saves a draft first and then sends it.
| Mode | Scopes |
|---|---|
| read-only | Mail.Read |
| read-write | Mail.ReadWrite, Mail.Send |
Outlook Calendar¶
- Lists the default calendar's events in a date window (default: now to one year ahead), with recurring events expanded.
- Text search is done client-side over the window — Graph doesn't support
$searchon events. - Incremental event sync is not implemented.
| Mode | Scopes |
|---|---|
| read-only | Calendars.Read |
| read-write | Calendars.ReadWrite |
OneDrive¶
delete_filesends items to the OneDrive recycle bin;permanent=Truedeletes permanently (GraphpermanentDelete, available on OneDrive for Business and SharePoint only).- Not yet addable via
iobox space add; available through the SDK.
| Mode | Scopes |
|---|---|
| read-only | Files.Read.All |
| read-write | Files.ReadWrite.All |
Microsoft 365 tokens¶
Tokens are stored per account and tier at ~/.iobox/tokens/ACCOUNT/microsoft_token_{readonly|standard}.txt (0600). A read-only session never reuses a read-write token. Tokens from older iobox versions (microsoft_token.txt, o365_token.txt) are migrated into the standard tier on first use.
Warning
Microsoft 365 providers are verified against the real python-o365 library, but have not yet been tested end-to-end against a real tenant.