jmap-kit
    Preparing search index...

    Variable emailQueryValidationPluginConst

    emailQueryValidationPlugin: ValidationPlugin<
        "invocation",
        EmailQueryRequestInvocationArgs,
    > = ...

    Validates that Email/query sort properties are supported by the server.

    Sort Property Validation (RFC 8621 Section 4.4):

    • Checks that all sort properties specified in the sort argument are included in the account's emailQuerySortOptions capability
    • The server defines which Email properties can be used for sorting in queries
    • Common sort options include receivedAt, from, to, subject, size, and hasAttachment
    • Server support varies based on implementation and indexing capabilities

    This validation prevents query errors by catching unsupported sort properties before sending the request. Without this check, the server would reject the query with an unsupportedSort error.

    Example: If a server only supports sorting by receivedAt and size, attempting to sort by sentAt would be caught and reported by this validator.