rcvdist Command

Purpose

Sends a copy of incoming messages to additional recipients.

Syntax

rcvdist [ -form File ] User ...

Description

The rcvdist command forwards copies of incoming messages to users in addition to the original recipient. The rcvdist command is not started by a user. The rcvdist command is placed in the .maildelivery file called by the /usr/lib/mh/slocal command.

The rcvdist command sends a copy of an incoming message to the user or users specified by the User parameter. The default string is located in the rcvdistcomps file. This file formats the output from the command and sends it through the send command to the ID or alias specified.

You can copy the rcvdistcomps file into your local mail directory and change the string to suit your needs. The Message Handler (MH) package uses the rcvdistcomps file in your local mail directory first. Otherwise, you can use the -form flag to specify a file name that contains the string you want.

Flags

Item Description
-form File Specifies the file that formats the command output. The default is the rcvdistcomps file.
-help Lists the command syntax, available switches (toggles), and version information.
Note: For MH, the name of this flag must be fully spelled out.

Files

Item Description
$HOME/.maildelivery Provides the user with MH instructions for local mail delivery.
$HOME/.forward Provides the user with the default message filter.