Skip to main content

dispatch_method

Function dispatch_method 

Source
pub async fn dispatch_method(
    call: JmapMethodCall,
    capabilities: &[String],
    principal: &Principal,
) -> Result<JmapMethodResponse>
Expand description

Dispatch JMAP method call.

Method handlers receive &Principal so they can enforce that the accountId named in the JMAP request belongs to the authenticated caller; mismatches are rejected with urn:ietf:params:jmap:error:forbidden.

Outgoing mail delivery uses a NullMailTransport by default. Callers that need real SMTP delivery should construct a dedicated dispatch path with a concrete transport.