mail-threading 0.1.1

JWZ email threading (RFC 5256). Reconstruct message threads from References/In-Reply-To headers, with subject fallback for broken clients.
Documentation
{
  "name": "no-replies",
  "description": "Messages with no headers and different subjects each become their own thread.",
  "spec": {
    "source": "RFC 5256 / JWZ",
    "url": "https://www.rfc-editor.org/rfc/rfc5256",
    "behavior": "messages without shared references or normalized subjects stay separate"
  },
  "input": [
    {
      "id": "<hello@example>",
      "message_id": "<hello@example>",
      "in_reply_to": null,
      "references": [],
      "subject": "Hello",
      "date": "2026-05-15T09:00:00Z"
    },
    {
      "id": "<world@example>",
      "message_id": "<world@example>",
      "in_reply_to": null,
      "references": [],
      "subject": "World",
      "date": "2026-05-15T09:05:00Z"
    }
  ],
  "expected": {
    "threads": [
      {
        "root": "<hello@example>",
        "messages": [
          "<hello@example>"
        ]
      },
      {
        "root": "<world@example>",
        "messages": [
          "<world@example>"
        ]
      }
    ]
  }
}