Sync mail into the vault
imap_sync_to_vaultSyncs IMAP inbox emails into markdown notes in your vault. Resumes from a stored cursor, never modifies the mailbox, and skips unchanged notes.
Instructions
Write mail into the second brain as markdown notes.
This is the only tool here that writes anything. It writes NOTES INTO THE VAULT; it never modifies the mailbox. Idempotent — a note whose content is unchanged is left alone.
Resumes from a stored IMAP cursor per provider+mailbox. If the server
renumbered the mailbox (UIDVALIDITY changed) the cursor is discarded and
the response says so via uidvalidity_reset rather than silently
skipping mail. Set dry_run=True to see paths without writing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| limit | No | ||
| dry_run | No | ||
| mailbox | No | INBOX | |
| apply_smart_filter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||