whom - report to whom a message is addressed (only available within the message handling system, mh)
whom [options] [file]
Specifies the alias file to be consulted by whom. If you have used one or more aliases in your message header, whom will consult the named file to find those aliases, and will print the full addresses as its output. You can reference more than one file, but each file name must be preceded by the word -alias. See mh-alias(4) for more information. Checks that the addresses are valid. whom makes no guarantees that the addresses listed as being correct are really deliverable: rather, an address being listed as correct means that at the time that whom was run, the address was thought to be deliverable by the transport service. For local addresses, this means that the local user does exist, and that the address was deliverable at the time of checking. For network and uucp addresses, it means that the syntax of the address is valid. Sets the draft message to be the standard file draft in your Mail directory. Specifies the folder in which whom searches for the draft message. The default is to use the current message in the named folder. You can select another message by using the -draftmessage option. For more information on using a draft folder, see comp(1). The -draftfolder option is often set up in your user profile; see mh_profile(4) for more information. Specifies the draft message to be used. If you specify a folder with the -draftfolder option, the -draftmessage option takes the number of a message in that folder. If you do not specify a folder, -draftmessage takes the name of a file. If you do not give an absolute pathname (one beginning with a / or ./ or ../ ), -draftmessage assumes that the file is located in your Mail directory. Prints a list of the valid options to this command. Specifies the format of the addresses to be checked. The only value allowed is smtp, which checks that addresses are deliverable over the standard mail system. Additional values are supported only for use with other mail systems.
The defaults for this command are:
file defaults to <mh-dir>/draft -nocheck -alias /usr/lib/mh/MailAliases -mts smtp
The whom command is used to expand the headers of a message into a set of addresses, and optionally to verify that those addresses are deliverable at that time if -check is given.
The whom command is often invoked as one of the options offered by the whatnow program when you have finished editing a draft message. See whatnow(1) for more details.
If you want to run
on a named file, you can
argument. This argument allows you
to specify a named file; if you want to run
existing message, use the
options. If you do not give an absolute pathname (one beginning
assumes that the named file is in your current
For this version, the
option only supports the
smtp. Additional values are supported for use only
with other mail systems.
Path: To determine your MH directory (mh-dir)
Draft-Folder: To find the default draft-folder
postproc: Program to post the message
In the following example,
the current message in the
% whom -draftfolder +drafts
smith: address OK In the next example, whom searches for message 2 in the folder +drafts: % whom -draftfolder +drafts -draftmessage 2
davis@hostname: address OK
The user profile.
comp(1), mh-alias(4), post(8)