Skip to content

iftocc.1

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

NAME

iftocc - check for blind carbon copies

SYNOPSIS

iftocc [ okaddr ... ]

DESCRIPTION

iftocc reads a mail message from its standard input. It exits 0 if $RECIPIENT is listed in a To or Cc field, 100 if not. Addresses are compared without regard to case.

If you list some okaddrs, iftocc will use them in place of $RECIPIENT. It exits 100 if none of them are listed in To or Cc.

For example, with qmail 1.03 and above, you can put

   |bouncesaying 'I do not accept Bcc.' except iftocc

into your .qmail file to reject blind carbon copies (including messages from mailing lists), or

   |condredirect me-blind except iftocc

to forward all blind carbon copies to me-blind.

WARNING: If you create a .qmail file to invoke iftocc, make sure to add a line specifying delivery to your normal mailbox.

SEE ALSO

bouncesaying(1), condredirect(1), except(1), dot-qmail(5),

SEE ALSO

ifaddr(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