# Indexing Message-ID header

**URL:** https://support.stalw.art/t/indexing-message-id-header/612
**Category:** Questions
**Created:** [June 11, 2026, 1:13pm UTC](https://support.stalw.art/t/indexing-message-id-header/612 "2026-06-11T13:13:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ralfbecker](https://support.stalw.art/user_avatar/support.stalw.art/ralfbecker/32/351_2.png) [@ralfbecker](https://support.stalw.art/u/ralfbecker)
#### Post date: [June 11, 2026, 1:13pm UTC](https://support.stalw.art/t/indexing-message-id-header/612/1 "2026-06-11T13:13:46Z")

</div>

### Your question

How do I configure a non-text mail header like `Message-ID` to be indexed?

---

<div class="post-metadata">

### Author: ![helpbot](https://support.stalw.art/user_avatar/support.stalw.art/helpbot/32/13_2.png) [@helpbot](https://support.stalw.art/u/helpbot)
#### Post date: [June 11, 2026, 1:14pm UTC](https://support.stalw.art/t/indexing-message-id-header/612/2 "2026-06-11T13:14:11Z")

</div>

Let me look into how Stalwart handles header indexing configuration.

The `headers` field value in `indexEmailFields` is what you need. The `SearchEmailField` enum includes a `headers` option (“Email Headers”) which is not enabled in the default list.

The default `indexEmailFields` list is:

```auto
["from","to","cc","bcc","subject","body","attachment","receivedAt","sentAt","size","hasAttachment"]

```

Notice `headers` is absent. To index `Message-ID` (and all other email headers), add `"headers"` to the `indexEmailFields` list in the **Search** object. You can find this in the WebUI under Settings \> Search. Once `headers` is included, all headers - including `Message-ID` - will be included in the full-text index.

Keep in mind:

- This will apply to all headers, not just `Message-ID` - there is no per-header granularity exposed in this configuration.
- After changing the setting, you may need to re-index existing mail for the change to apply to existing messages (check the Tasks/Actions section of the WebUI for a re-index task).

Reference: [Search Store docs](https://stalw.art/docs/storage/fts) and the [Search object reference](https://stalw.art/docs/ref/object/search).

_This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong._
