{"uid":"cap_wMbTnmbtYdfLcmGY6js-r","slug":"imap-mailbox-boolean-search-sequence-uid-result-set-validator-2712d606","name":"IMAP Mailbox Boolean Search Sequence UID Result Set Validator","description":"IMAP mailbox search condition result set. Reconstruct the fully typed result and compare its complete canonical SHA256 claim.","url":"https://detect.halowerk.com/v1/F-TD2000-DOCUMENTS-08/imap3501-decoded-mailbox-boolean-search-sequence-uid-result-set?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"artifact":{"type":"object","required":["imapSearch"],"properties":{"imapSearch":{"type":"object","required":["data","claim"],"properties":{"data":{"type":"object","required":["messages","nodes","root"],"properties":{"root":{"type":"integer","maximum":63,"minimum":0},"nodes":{"type":"array","items":{"type":"object","required":["op","children","text","header","date","number","ranges"],"properties":{"op":{"enum":["AND","OR","NOT","ALL","SEQUENCE","UID","FLAG","UNFLAG","NEW","OLD","BEFORE","ON","SINCE","SENTBEFORE","SENTON","SENTSINCE","LARGER","SMALLER","HEADER","BODY","TEXT"]},"date":{"type":"string","maxLength":10,"minLength":0},"text":{"type":"string","maxLength":512,"minLength":0},"header":{"type":"string","maxLength":128,"minLength":0},"number":{"type":"integer","maximum":1000000000000,"minimum":0},"ranges":{"type":"array","items":{"type":"array","items":{"anyOf":[{"type":"integer","maximum":4294967295,"minimum":1},{"enum":["*"]}]},"maxItems":2,"minItems":2},"maxItems":16,"minItems":0},"children":{"type":"array","items":{"type":"integer","maximum":63,"minimum":0},"maxItems":64,"minItems":0}},"additionalProperties":false},"maxItems":64,"minItems":1},"messages":{"type":"array","items":{"type":"object","required":["uid","body","headers","flags","internal_date","sent_date","size_octets"],"properties":{"uid":{"type":"integer","maximum":4294967295,"minimum":1},"body":{"type":"string","maxLength":1024,"minLength":0},"flags":{"type":"array","items":{"type":"string","maxLength":64,"minLength":1},"maxItems":16,"minItems":0},"headers":{"type":"array","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","maxLength":128,"minLength":1},"value":{"type":"string","maxLength":512,"minLength":0}},"additionalProperties":false},"maxItems":32,"minItems":0},"sent_date":{"anyOf":[{"type":"null"},{"type":"string","maxLength":10,"minLength":10}]},"size_octets":{"type":"integer","maximum":1000000000000,"minimum":0},"internal_date":{"type":"string","maxLength":10,"minLength":10}},"additionalProperties":false},"maxItems":64,"minItems":0}},"additionalProperties":false},"claim":{"anyOf":[{"type":"null"},{"type":"string","pattern":"^[0-9a-f]{64}$","maxLength":64,"minLength":64}]}},"additionalProperties":false}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zGbSxJlQSupGnTYS4mFrE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Evaluates a typed IMAP search condition tree against a set of mailbox messages and verifies the result set against a canonical SHA256 claim","exampleAgentPrompt":"Verify that this IMAP boolean search tree — rooted at node 0 with an AND of a SINCE 2024-01-01 condition and a FLAG Seen condition — correctly matches these 3 mailbox messages (UIDs 101, 102, 103 with their headers, flags, and dates), and confirm it matches the SHA256 claim I've provided.","exampleUseCases":[{"title":"IMAP search audit for email compliance","prompt":"I have an IMAP search tree that uses AND, SINCE 2024-06-01, and FLAG conditions evaluated against 10 mailbox messages — can you verify that the resulting UID set matches the SHA256 claim I have on file?"},{"title":"Debugging IMAP UID SEARCH result mismatch","prompt":"My IMAP client is returning unexpected UIDs for a SEQUENCE search rooted at node 2 with OR and NOT branches — run this search tree against these messages and tell me whether the result set matches the claimed SHA256 hash."},{"title":"Protocol conformance testing for IMAP server","prompt":"For protocol conformance testing, evaluate this 5-node IMAP search tree with BEFORE, LARGER, and HEADER conditions against a batch of 20 test messages and verify the output matches the canonical SHA256 I specified."}],"resultDescription":"Returns a typed result set of matched message UIDs after evaluating the IMAP boolean search operator tree, along with a comparison outcome indicating whether the result set's canonical SHA256 matches the supplied claim.","failureModes":["SHA256 claim mismatch — search result does not match the provided hash","Invalid root node index outside allowed range (0-63)","Malformed node operator or missing required node fields","UID or sequence range values out of bounds","Date string format invalid or not 10 characters","Node children references exceeding array bounds","Message array empty or missing required fields","Too many nodes or messages exceeding schema maximums"],"whenToPreferThis":"Use this endpoint when you need to deterministically validate that an IMAP search condition tree — including complex boolean operators (AND, OR, NOT), flag conditions, date ranges, size filters, header matching, and UID/sequence set filters — produces an expected result set that can be verified against a SHA256 hash. Prefer it for IMAP protocol conformance testing, audit trails, or any scenario where the correctness and integrity of a mailbox search result must be cryptographically confirmed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-04T06:41:00.029Z","isFirstParty":false,"canonicalSlug":"imap-mailbox-boolean-search-sequence-uid-result-set-validator-2712d606"}