mail-threading 0.1.3

JWZ email threading (RFC 5256). Reconstruct message threads from References/In-Reply-To headers, with subject fallback for broken clients.
Documentation
{
  "name": "prune-phantoms-disabled",
  "description": "When phantom pruning is disabled, a missing ancestor can remain the public root.",
  "spec": {
    "source": "public API contract",
    "url": "https://www.jwz.org/doc/threading.html",
    "behavior": "phantom pruning is caller-configurable"
  },
  "options": {
    "prune_phantoms": false
  },
  "input": [
    {
      "id": "reply",
      "message_id": "<prune-disabled-reply@example>",
      "in_reply_to": "<prune-disabled-root@example>",
      "references": [
        "<prune-disabled-root@example>"
      ],
      "subject": "Re: Prune",
      "date": "2026-05-15T09:05:00Z"
    }
  ],
  "expected": {
    "threads": [
      {
        "root": "prune-disabled-root@example",
        "messages": [
          "reply"
        ]
      }
    ]
  }
}