jmap-kit
    Preparing search index...

    Variable emailAccountSupportPluginConst

    emailAccountSupportPlugin: ValidationPlugin<"invocation"> = ...

    Validates that invocations using the Email capability have a valid accountId that supports the Email capability.

    This plugin performs three critical validation checks:

    1. Verifies the invocation includes a valid accountId argument (non-empty string)
    2. Confirms the account exists in the session's accounts collection
    3. Ensures the account's accountCapabilities includes the Email capability URI

    This validation applies to all Email capability invocations (Mailbox, Email, Thread method calls) and implements the account capability checks described in RFC 8621 Section 1.2.