---
name: "header"
section: "1"
platform: "linux"
package: "deliver"
version: "2.1.14-4"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/header"
---

# header(1)

extract fields from mail header

## NAME

header - extract fields from mail header

## SYNOPSIS

**header** \[-c\] \[-n\] \[-v\] \[-f fieldname\] ...

## DESCRIPTION

The *header* program reads a mail header on its standard input.  Any text that follows the header is ignored.  It then prints all, part, or none of the header to its standard output, depending on its command line options.

## OPTIONS

- **-c**

  Match field names only if their cases match.  Normally, mail header field names are case-insensitive.

- **-n**

  Prefix displayed header fields with their names.  The resulting output is itself a valid header (albeit possibly shorter).  By default, only field values are displayed.

- **-v**

  Print only the fields that are *not* listed in **-f** options.

- **-f fieldname**

  Display (or delete, if **-v**) header fields with the given name.

## SUPPORT

Please mail enhancements, enhancement requests, trouble reports, etc. to \<chip@pobox.com\>.  See also the Debian GNU/Linux bug tracking system at http://www.debian.org/Bugs/.

## SEE ALSO

[*deliver*(8)](/deliver/8.md)
