# OpenCLI Agent Pack: OfflineIMAP

Use this when an AI agent needs to work with `offlineimap`.

## What this CLI is for
IMAP sync, mail archive, and offline email from the terminal. Built by OfflineIMAP. Runs entirely on your machine.

Best for: imap sync, mail archive, and offline email from the terminal.

## Agent readiness
Usable with guardrails (45/100)
- Supports non-interactive/scripted use.
- Can run locally with less credential exposure.

## Install
```sh
brew install offlineimap
```

## Verify before real work
```sh
offlineimap --help
```
Expected signal: offlineimap responds locally; authenticate before real work.

## Safe starting commands
```sh
offlineimap --help
```

```sh
offlineimap -o
```

## Guardrails for agents
- Prefer small commands and ask the agent to summarize plain text output.
- Verify identity/account before running task commands.
- Network access is required; avoid leaking secrets in logs.
- Start read-only, then ask before mutations.

## Suggested agent instruction
You may use OfflineIMAP (`offlineimap`) for imap sync, mail archive, and offline email from the terminal.. First install it if missing, then run the verify command. Start with read-only or inspection commands. Summarize what you found before changing anything. Ask for confirmation before commands that mutate remote state, spend money, deploy, delete data, merge code, or expose secrets.

Source: OpenCLI
