![]() | :: | Software | :: | qtools |
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.
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 : myfriendwrites correspondence with myfriend to dir.
The invocation
| condtomaildir dir ifaddr @example.comwrites a message with a To or Cc address in the domain example.com to dir.