# IMAP Mailbox Boolean Search Sequence UID Result Set Validator

> IMAP Mailbox Boolean Search Sequence UID Result Set Validator is a paid API for AI agents from detect.halowerk.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-04).

Evaluates a typed IMAP search condition tree against a set of mailbox messages and verifies the result set against a canonical SHA256 claim

## Facts

- Endpoint: POST https://detect.halowerk.com/v1/F-TD2000-DOCUMENTS-08/imap3501-decoded-mailbox-boolean-search-sequence-uid-result-set?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/imap-mailbox-boolean-search-sequence-uid-result-set-validator-2712d606
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wMbTnmbtYdfLcmGY6js-r

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability imap-mailbox-boolean-search-sequence-uid-result-set-validator-2712d606 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

IMAP mailbox search condition result set. Reconstruct the fully typed result and compare its complete canonical SHA256 claim.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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",
     
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/imap-mailbox-boolean-search-sequence-uid-result-set-validator-2712d606/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from detect.halowerk.com](https://www.zero.xyz/host/detect.halowerk.com/llms.txt)
