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.
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
writes correspondence with myfriend to dir.
The invocation
writes a message with a To or Cc address in the domain example.com to dir.
Copyright © 2009 by SuperScript Technology, Inc. All rights reserved.