-
-
Notifications
You must be signed in to change notification settings - Fork 3
ifaddr.1
ifaddr - check if address appears in a field in a message.
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 : 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.
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),