Skip to main content
Threads group related messages into conversations. When a new message arrives, Nuntly automatically determines whether it belongs to an existing thread or starts a new one.

Threading algorithm

Nuntly uses the following logic to match incoming messages to threads, evaluated in order:
  1. In-Reply-To header. If the incoming message has an In-Reply-To header, Nuntly looks for a message in the same inbox with a matching Message-ID. If found, the new message joins that thread.
  2. References header. If no match is found via In-Reply-To, Nuntly checks the References header for any matching Message-ID in the same inbox.
  3. Subject matching. If no header match is found, Nuntly normalizes the subject line (stripping prefixes like Re: and Fwd:) and looks for a thread in the same inbox with a matching normalized subject that had activity within the last 7 days.
  4. New thread. If none of the above produce a match, a new thread is created.

List threads

You can list threads for a specific inbox. Filter by read status or spam flag.

Available filters

Thread fields

Retrieve a thread

Get the full details of a single thread. By default, retrieving a thread does not change its read status.
Pass markRead: 'true' as a query parameter to automatically remove the unread label from all messages in the thread: nuntly.threads.retrieve(threadId, { markRead: 'true' }).

List thread messages

Retrieve the messages in a thread. Messages are returned in chronological order (oldest first).

Update a thread

Update thread labels or agent assignment. Label operations apply to all messages in the thread.

Update request fields

Next steps

Messages

Access message content, headers, and attachments

Send, reply, and forward

Respond to messages within threads