SieveScriptStatus

Capability: https://analytic.systems/jmap/sieve

An extension to JMAP (RFC 8620 section 1.8) of the Blåmail mail service, beside JMAP for Sieve Scripts (RFC 9661, urn:ietf:params:jmap:sieve). A Sieve script that could not be run for a message does nothing: the message is kept (RFC 5228 section 2.10.6). What went wrong is written down with the script, and RFC 9661 has no property to say it in. The standard SieveScript object is left as the standard has it; this capability adds a type of its own that tells it.

In the session object

The capability is in the session's capabilities object and in the accountCapabilities of each account that has Sieve scripts, in both places with an empty object as its value.

The SieveScriptStatus object

id: Id (immutable; server-set)
The id of the SieveScript this is the status of.
lastError: String|null (server-set)
What went wrong the last time the script could not be run for a message, in words for a person; null if it has not failed since it was last stored.
lastErrorAt: UTCDate|null (server-set)
When that was.
errorCount: UnsignedInt (server-set)
How many times the script has failed since it was last stored; 0 if never.

SieveScriptStatus/get

The standard /get method (RFC 8620 section 5.1). With ids of null it gives the status of every script of the account. The objects cannot be set: storing the script anew (SieveScript/set, or ManageSieve PUTSCRIPT) is what clears them.