Example
How to read it
- Mail apps use it with References to group conversations.
- A fake "Re:" subject without In-Reply-To is a common phishing trick.
Can you trust it?
Set by the sender. To check an email you are unsure about, paste its full headers into the email header analyzer, or receive it in a temporary inbox where the Email X-ray checks it for you.
How to view email headers
- Gmail: open the message, click the three dots, then Show original.
- Outlook: open the message, then File, Properties, Internet headers (desktop), or the three dots, View, View message details (web).
- Apple Mail: View, Message, All Headers.
- Yahoo Mail: the three dots, then View raw message.
Where In-Reply-To sits in a real message
Every email has a header block at the top, then a blank line, then the body. Your mail app hides most of the header block and shows only a few fields. Here is a short, realistic header block with the In-Reply-To line highlighted:
Received: from mail.example.com (mail.example.com [192.0.2.10]) by mx.yourprovider.com
Authentication-Results: mx.yourprovider.com; spf=pass; dkim=pass; dmarc=pass
From: "Example Store" <news@example.com>
In-Reply-To: <CAF9x3k2a.7f4@mail.acme.example>
Subject: Your order has shipped
Date: Thu, 12 Nov 2026 09:14:03 -0500
Servers add their lines at the top as the message travels, so the newest information is first and the sender's original fields are lower down. When you read a header block, start at the top with the lines your own provider added, then work down.
About threading headers
Threading headers let mail apps group replies into conversations. Each message gets a unique Message-ID, and replies point back to earlier messages with In-Reply-To and References. When threading breaks, it is almost always because one app in the chain dropped or rewrote these fields.
Checking In-Reply-To on a suspicious email
- Treat it as a helpful hint, not as proof. It is usually set by software along the way and is rarely checked.
- Use it together with Received and Authentication-Results to build a picture of where the message came from.
- Values that do not fit the claimed sender, such as a cheap bulk-mail tool on a message from a large bank, are worth a closer look.
Notes for developers
- Header names are case-insensitive, so
In-Reply-To,in-reply-toandIN-REPLY-TOare the same field. - Long values can be folded across several lines. A line that starts with a space or tab continues the previous header (RFC 5322 section 2.2.3).
- Non-ASCII text in header values is sent as encoded words such as
=?UTF-8?B?...?=(RFC 2047). Decode them before you display or compare values. - Some fields may appear more than once. Received, for example, appears once per hop. Decide whether your code needs the first, the last or all of them.
- Never use this header to make a security decision unless your own server added or verified it.
Other threading headers
| Header | What it does |
|---|---|
| Message-ID | A globally unique identifier for the message, used for threading, deduplication and tracing. |
| References | Lists the Message-IDs of earlier messages in the conversation, oldest first. |
| Thread-Index | A Microsoft Outlook header used to group conversations. |
A scenario: the broken conversation
Replies to a support ticket keep appearing as new conversations. The help desk tool is not including In-Reply-To and References headers that point back to the original Message-ID, so mail apps cannot group them. Adding those headers when sending replies fixes threading in Gmail, Outlook and Apple Mail.
Quick checklist
- Every message should have a unique Message-ID.
- Replies should set In-Reply-To to the parent Message-ID.
- References should list the chain of earlier Message-IDs.
In-Reply-To in raw, parsed and displayed form
| View | What you see |
|---|---|
| Raw source | In-Reply-To: <CAF9x3k2a.7f4@mail.acme.example> |
| Parsed by a mail library | A field named in-reply-to with its decoded value |
| Shown by most mail apps | Hidden unless you open the full source |
Terms used on this page
- Message-ID
- A unique identifier assigned to every email, used to thread replies and detect duplicates.
- Reply-To
- An email header that tells mail apps where replies should go, which can be different from the sender address.
- Phishing
- A fraudulent message designed to trick people into revealing passwords, codes or payment details, or into installing malware.
Related guides
Related headers
- References: Lists the Message-IDs of earlier messages in the conversation, oldest first.
- Message-ID: A globally unique identifier for the message, used for threading, deduplication and tracing.
FAQ
What is the In-Reply-To header?
Contains the Message-ID of the message this one replies to.
Who sets the In-Reply-To header?
The replying mail app.
Can the In-Reply-To header be faked?
Set by the sender.
Is the In-Reply-To header required?
No. In-Reply-To is optional. Many messages do not include it, and its absence is not a problem on its own.
Why is In-Reply-To missing from my email?
Mail apps hide most headers. Open the full source (Show original in Gmail, View message details in Outlook) to see every header. If In-Reply-To is still not there, the sending software simply did not add it.
Why are unrelated emails grouped together?
Some apps group by subject as a fallback. Matching subjects like "Invoice" can merge separate conversations.
Is Message-ID private?
It often contains the sender's server name and a timestamp, but no personal data.