sync_emails
Incrementally sync email metadata from IMAP into the local SQLite index using checkpoints, avoiding redundant fetches. Run before searching or getting threads to refresh stale data.
Instructions
Incrementally sync email metadata from IMAP into the local SQLite index, using stored checkpoints to avoid re-fetching already-indexed messages. Use before calling search_indexed_emails or get_threads when the index may be stale. Set full:true for a larger initial sample. Prefer run_background_sync to trigger the scheduled sync cycle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| full | No | Fetch a larger per-folder sample. | |
| folder | No | Folder to sync. Defaults to all folders. | |
| limitPerFolder | No | Override the per-folder fetch limit. | |
| includeAttachmentText | No | Extract searchable text from text-like attachments while syncing. |