JMAP fixed-mailbox windows with server-confirmed suffixes
moon add 001-Elsa/moonjmap@0.1.1///|
import {
"001-Elsa/moonjmap/src/email",
"001-Elsa/moonjmap/src/sync",
} for "test"///|
test "open a bounded mail view" {
let account : @sync.AccountScope = {
service_identity: "https://jmap.example.test",
account_id: "account-1",
}
let view = @sync.open_view(
account,
@email.ViewSpec::Latest("inbox"),
@sync.default_limits(),
Some("email-state-0"),
)
let next = @sync.plan(view)
assert_eq(next.requests.length(), 1)
assert_true(next.requests[0].kind == @sync.RequestKind::Query)
}moon run cmd/demo --target wasmInstall
Download zipJMAP fixed-mailbox windows with server-confirmed suffixes