Skip to content

iftoccfrom.1

Manvendra Bhangui edited this page May 7, 2023 · 5 revisions

NAME

iftoccfrom - check if recipient is listed in To, CC or From field in a message

SYNOPSIS

iftoccfrom [ addr ... ] where addr is an email address

DESCRIPTION

iftoccfrom reads an 822-format message from standard input and exits 0 if $RECIPIENT is listed in a To, Cc, or From field, and exits 100 otherwise. If one or more addr is present, then iftoccfrom ignores $RECIPIENT, and uses each addr instead.

If it encounters a temporary error while reading input, iftoccfrom exits 111.

For example, the .qmail line

| condtomaildir dir iftoccfrom afriend

writes correspondence with afriend to dir.

SEE ALSO

iftocc(1), ifaddr(1),

Clone this wiki locally