sync_emails
Sync email metadata from IMAP into the local index, using checkpoints to avoid re-fetching. Call before searching or viewing threads when the index may be stale.
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 |
|---|---|---|---|
| folder | No | Folder to sync. Defaults to all folders. | |
| full | No | Fetch a larger per-folder sample. | |
| limitPerFolder | No | Override the per-folder fetch limit. | |
| includeAttachmentText | No | Extract searchable text from text-like attachments while syncing. |