header(1)

header1

Extract fields from mail header

Usage

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

Overview

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 <[email protected]>. See also the Debian GNU/Linux bug tracking system at http://www.debian.org/Bugs/.

Releases

Unchanged in 4 releases since Debian 2.2 (Potato).

  1. 2.2–4.0

From deliver 2.1.14-4 in Debian 4.0 (Etch). Parsed by carta from the page's man source.