whom Command

Purpose

Manipulates Message Handler (MH) addresses.

Syntax

whom-alias File ... ] [-nocheck-check ] [ {  -draftfolder +Folder -nodraftholder File }{  -draftmessage Message -draftFile } ]

Description

The whom command does the following:

A message can reside in a draft folder or in a file. To specify where a message resides, use the -draft, -draftfolder, or -draftmessage flag.

If you do not specify the -draftfolder flag or if the Draft-Folder: entry in the $HOME/.mh_profile file is undefined, the whom command searches your MH directory for a draft file. Specifying a message after the -draftfolder +Folder flag is the same as specifying the -draftmessage flag.

Flags

Item Description
-alias File Specifies a file to search for mail aliases. By default, the system searches the /etc/mh/MailAliases file.
-draft Uses the header information in the UserMhDirectory/draft file if it exists.
-draftfolder +Folder Uses the header information from the draft message in the specified folder. If you specify a draft folder that doesn't exist, the system creates one for you.
-draftmessage Message Uses the header information from the specified draft message.
-help Lists the command syntax, available switches (toggles), and version information.
Note: For MH, the name of this flag must be fully spelled out.
Message Specifies the message draft. Use the following to specify messages:
Number
Number of the message.
cur or . (period)
Current message. This is the default.
first
First message in a folder.
last
Last message in a folder.
next
Message following the current message.
prev
Message preceding the current message.
-nodraftfolder Undoes the last occurrence of the -draftfolder +Folder flag.
Note: Two other flags, -check and -nocheck, are also available. These flags have no effect on how the whom command performs verification. The -check and -nocheck flags are provided for compatibility only.

Profile Entries

The following entries are entered in the UserMhDirectory/.mh_profile file:

Item Description
Draft-Folder: Sets your default folder for drafts.
postproc: Specifies the program used to post messages.

Security

Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in AIX® Version 7.1 Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

Examples

To list and verify the addresses of the proposed recipients of a message, enter the addressees and subject of the message at the respective prompt, as follows:

To: d77@nostromo
Subject: a test

When prompted again, enter the text of the message:

-------Enter initial text
test
-------

After the whatnow prompt, enter the whom command:

whatnow>>> whom

The address of the proposed recipients of the message is then displayed:

lance...
d77@nostromo... deliverable

Files

Item Description
$HOME/.mh_profile Specifies the MH user profile.
/usr/bin/whom Contains the whom command.