Skip to content

ifaddr.1

Manvendra Bhangui edited this page Feb 25, 2024 · 5 revisions

NAME

ifaddr - check if address appears in a field in a message.

SYNOPSIS

ifaddr [ field ... : ] [ addr ... ] where field is an 822-format header field and addr is an email address. If no field arguments appear, then ifaddr uses To and CC

DESCRIPTION

ifaddr reads a message from standard input, exiting 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 it encounters a temporary error while reading input, ifaddr exits 111.

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

For example, the .qmail line

| condtomaildir dir ifaddr to cc from : myfriend

writes correspondence with myfriend to dir.

The invocation

| condtomaildir dir ifaddr @example.com

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

SEE ALSO

iftocc(1), iftoccfrom(1), bouncesaying(1), condredirect(1), condtomaildir(1), dot-qmail(5), filterto(1), except(1), dot-forward(1), fastforward(1), forward(1), printforward(1), setforward(1), preline(1), qmail-command(8), qnotify(1), qreceipt(1), replier(1), rrforward(1),

Clone this wiki locally