The Message-ID email header

A globally unique identifier for the message, used for threading, deduplication and tracing.

Threading headerUpdated November 12, 2026
Quick answerA globally unique identifier for the message, used for threading, deduplication and tracing. Set by the sender; useful for tracing but not proof of origin.
CategoryThreading
Set byThe sender's mail app or first server
Trust levelInformational

Example

Message-ID: <CAF9x3k2a.7f4@mail.acme.example>

How to read it

  • The part after @ usually shows the system that created the message.
  • A Message-ID from a domain unrelated to the sender can hint at a third-party sending service or spoofing.

Can you trust it?

Set by the sender; useful for tracing but not proof of origin. 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 Message-ID 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 Message-ID line highlighted:

Return-Path: <bounce@mail.example.com>
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>
Message-ID: <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 Message-ID on a suspicious email

  1. Treat it as a helpful hint, not as proof. It is usually set by software along the way and is rarely checked.
  2. Use it together with Received and Authentication-Results to build a picture of where the message came from.
  3. 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 Message-ID, message-id and MESSAGE-ID are 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

HeaderWhat it does
In-Reply-ToContains the Message-ID of the message this one replies to.
ReferencesLists the Message-IDs of earlier messages in the conversation, oldest first.
Thread-IndexA 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.

Message-ID in raw, parsed and displayed form

ViewWhat you see
Raw sourceMessage-ID: <CAF9x3k2a.7f4@mail.acme.example>
Parsed by a mail libraryA field named message-id with its decoded value
Shown by most mail appsHidden unless you open the full source

Related guides

Related headers

  • In-Reply-To: Contains the Message-ID of the message this one replies to.
  • References: Lists the Message-IDs of earlier messages in the conversation, oldest first.

FAQ

What is the Message-ID header?

A globally unique identifier for the message, used for threading, deduplication and tracing.

Who sets the Message-ID header?

The sender's mail app or first server.

Can the Message-ID header be faked?

Set by the sender; useful for tracing but not proof of origin.

Is the Message-ID header required?

It is not strictly required, but RFC 5322 says every message should have one, and most providers treat a missing Message-ID as a spam signal.

Why is Message-ID 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 Message-ID 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.

Install TempMailify

Add TempMailify to your device for one-tap access, like a regular app.