Skip to content
HALOWERK

Denkwerk

mail thread state

Parses RFC 5322 messages including mbox separators, folded headers, RFC 2047 encoded words, MIME multipart (text/plain preferred, HTML converted with quote levels), quoted-printable and base64 bodies. Quoted history is split off at ">" quote blocks, "On wrote:" / "Am schrieb :" attributions and Outlook "Original Message"/"Ursprüngliche Nachricht" header blocks, recursively, so a single forwarded mail yields its earlier messages; copies of messages already present are dropped. Greetings,.

POST https://denk.halowerk.com/v1/mail-thread-state

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
rawstringNombox file, one raw message (RFC 5322) or pasted thread text.
messagesarrayNo
mestringNoYour own address, to decide whether the thread waits on you.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "raw": {
      "type": "string",
      "minLength": 1,
      "maxLength": 3000000,
      "description": "mbox file, one raw message (RFC 5322) or pasted thread text."
    },
    "messages": {
      "type": "array",
      "minItems": 1,
      "maxItems": 500,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "body"
        ],
        "properties": {
          "from": {
            "type": "string",
            "maxLength": 300
          },
          "to": {
            "type": "string",
            "maxLength": 2000
          },
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "subject": {
            "type": "string",
            "maxLength": 500
          },
          "body": {
            "type": "string",
            "maxLength": 500000
          }
        }
      }
    },
    "me": {
      "type": "string",
      "maxLength": 300,
      "description": "Your own address, to decide whether the thread waits on you."
    }
  }
}

Open original schema

Published input example

{
  "messages": [
    {
      "from": "Buchhaltung <api@halowerk.com>",
      "date": "2026-10-26T09:00:00Z",
      "body": "Could you send the contract?"
    },
    {
      "from": "Dokumentation <codex@netzhandwerker.de>",
      "date": "2026-10-27T10:00:00Z",
      "body": "I will send it by Friday."
    }
  ],
  "me": "api@halowerk.com"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub →