setup_apple_mail
Configure Apple Mail indexing by specifying mail root, clearing the index, setting OCR size limit, and filtering accounts, bypassing the onboarding sheet.
Instructions
Configure Apple Mail indexing programmatically: bookmark mail_root (default ~/Library/Mail), optionally clear the index, set OCR size limit and account filter, then enable. Avoids the onboarding sheet entirely.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enable | No | Whether to enable indexing (default true). | |
| mail_root | No | Absolute path to the user's Mail folder. Defaults to ~/Library/Mail. | |
| clear_index | No | If true, wipe MailFtsSqlite and reset the cursor before starting. | |
| ocr_limit_mb | No | Attachment OCR size limit (25/50/100/200 MB). | |
| account_rowids | No | Optional: mailboxes.ROWID list to filter on. Empty/omit = all accounts. |