abandon_move
Cancel an ongoing email move operation in iCloud Mail to start a new one. Use when you need to stop and replace the current move process.
Instructions
Abandon an in-progress move operation so a new one can start. Only use if you are certain the operation should not be resumed. Emails already moved will not be returned to source.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- lib/imap.js:138-150 (handler)Implementation of the abandonMove tool which marks an in-progress move operation as abandoned in the manifest file.
export function abandonMove() { const data = readManifest(); if (!data.current) return { abandoned: false, message: 'No in-progress operation to abandon' }; if (data.current.status !== 'in_progress') { return { abandoned: false, message: `Current operation is already '${data.current.status}', nothing to abandon` }; } const operationId = data.current.operationId; data.current.status = 'abandoned'; data.current.updatedAt = new Date().toISOString(); archiveCurrent(data); writeManifest(data); return { abandoned: true, operationId }; }