mail-threading 0.1.0

Spec-aligned client-side email threading using RFC 5256/JWZ references.
Documentation
{
  "name": "missing-top-reference",
  "description": "A missing top reference is represented by a phantom and pruned from public output.",
  "spec": {
    "source": "JWZ",
    "url": "https://www.jwz.org/doc/threading.html",
    "behavior": "referenced ancestors without local messages become phantom containers"
  },
  "input": [
    {
      "id": "<reply@example>",
      "message_id": "<reply@example>",
      "in_reply_to": "<missing-root@example>",
      "references": [
        "<missing-root@example>"
      ],
      "subject": "Re: Hello",
      "date": "2026-05-15T09:05:00Z"
    },
    {
      "id": "<second-reply@example>",
      "message_id": "<second-reply@example>",
      "in_reply_to": "<reply@example>",
      "references": [
        "<missing-root@example>",
        "<reply@example>"
      ],
      "subject": "Re: Hello",
      "date": "2026-05-15T09:10:00Z"
    }
  ],
  "expected": {
    "threads": [
      {
        "root": "<reply@example>",
        "messages": [
          "<reply@example>",
          "<second-reply@example>"
        ]
      }
    ]
  }
}