ifaddr(1)

NAME

ifaddr - match addresses in headers

SYNOPSIS

    ifaddr [ _field_ ... : ] [ _addr_ ... ]

DESCRIPTION

The ifaddr program reads a message from standard input. It exits 0 if any _addr_ appears in a _field_ header, and exiting 100 if there is no match. Invoked with no _addr_ arguments, ifaddr looks for the address in the environment variable $RECIPIENT. Address comparisons are case insensitive. If no _field_ arguments appear, then ifaddr uses To and Cc.

If an _addr_ begins with @, then ifaddr compares it to the domain portion of addresses from each field.

EXIT STATUS

If it encounters a temporary error while reading input, ifaddr exits 111.

EXAMPLES

The .qmail line

    | condtomaildir _dir_ ifaddr to cc from : _myfriend_

writes correspondence with _myfriend_ to _dir_.

The .qmail line

    | condtomaildir _dir_ ifaddr @example.com

writes a message with a To or Cc address in the domain example.com to _dir_.

AUTHOR

William Baxter <sst@superscript.com>

Version 0.56
Last updated 2015-08-23 23:24:43 CDT