Skip to content
Mbox Viewer

Header

The structured metadata block at the beginning of an email message, containing fields like From, To, Subject, Date, and numerous technical fields that describe how the message was composed, routed, and encoded.

Every email message consists of two parts separated by a blank line: the header section and the body. The header is a series of name-value pairs, one per line, each following the format "Field-Name: value". RFC 5322 defines the syntax and the meaning of common fields. Headers accumulate as a message travels: each mail server adds a Received header, creating a traceable delivery chain.

User-facing fields like From, To, Cc, Subject, and Date are the most recognizable headers, but there are dozens of technical fields as well: Content-Type describes the body encoding, MIME-Version signals multi-part structure, Message-ID provides a globally unique identifier, and X- prefixed fields carry vendor-specific metadata (such as Gmail's X-Gmail-Labels).

Headers are the primary data source for sorting, filtering, and searching email. Mbox Viewer parses headers for every message in an MBOX file to populate the column list — sender, recipient, subject, date — and to build the full-text index. Searching with filters like from:alice@example.com or subject:invoice targets header fields directly.

Related terms

Read your MBOX files on your Mac