A command-line client for ManageSieve and Sieve scripts.

msieve is a policy-neutral CLI for direct RFC 5804 ManageSieve operations against a compatible mail server.

Install msieve

dotnet tool install --global Transiever.ManageSieve.Cli

# Or install a self-contained build
scoop install transiever/msieve
brew install SeWieland/transiever/msieve

Transiever.ManageSieve.Cli installs as a global .NET tool. Scoop offers Windows builds; Homebrew offers Linux x64 builds.

Inspect and manage scripts directly

msieve capabilities
msieve list
msieve get active --output active.sieve
msieve check --file candidate.sieve
msieve put candidate --file candidate.sieve --activate
msieve deactivate

The CLI uses port 4190 with required STARTTLS by default and refuses plaintext authentication. It does not generate Sieve, reconcile scripts, create backups, or apply provider-specific policy.

Use a higher-level workflow when needed

Use msieve for direct server operations. Use srtx and SieveRuler for JSON rules, Sieve generation, preview, reconciliation, deployment plans, and rollback.

See the ManageSieve CLI documentation for the full command and configuration reference.