archive_older_than
Move emails older than a specified number of days from a source mailbox to an archive folder using a safe copy-verify-delete process. Preview changes with dry run mode.
Instructions
Safely move emails older than N days from a source mailbox to an archive folder. Uses the same safe copy-verify-delete pipeline as bulk_move. Use dryRun: true to preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | Archive emails older than this many days | |
| targetMailbox | Yes | Destination archive folder (e.g. Archive) | |
| sourceMailbox | No | Source mailbox (default INBOX) | |
| dryRun | No | If true, preview what would be moved without moving |