Generate and deploy Sieve rules from JSON in .NET.

Transiever.SieveRuler is the provider-neutral rule engine behind Transiever: it models mail rules as JSON, renders Sieve, reconciles existing scripts, and manages safe deployment workflows.

Install the library or srtx tool

dotnet add package Transiever.SieveRuler
dotnet tool install --global Transiever.SieveRuler.Cli

Use the SieveRuler library package in an application, or install the SieveRuler CLI package for the srtx command.

Generate, preview, and deploy

srtx inspect --rules rules.json
srtx generate --rules rules.json --sieve rules.sieve
srtx preview --rules rules.json --preserve-compatible
srtx deploy --plan deployment-plan.json

Preview writes review artifacts without mutating the server. Deployment validates the candidate, preserves the current active script by default, and can create a server-side backup for rollback.

When SieveRuler is the right tool

Use SieveRuler when you need rule models, generated Sieve, reconciliation, and deployment policy. Use Transiever.ManageSieve when you only need direct RFC 5804 protocol operations.

Read the SieveRuler documentation for the JSON schema, compatibility metadata, and synchronization policy.