WHATNOW(1m,C) AIX Commands Reference WHATNOW(1m,C)
-------------------------------------------------------------------------------
whatnow
PURPOSE
Invokes a prompting interface for draft disposition.
SYNTAX
+------------------------------------------------------------------+
| one of |
| +----------------+ |
whatnow -| | file | |->
| +-| -nodraftfolder |-------------------------------------------+ |
| | +----------------+ | |
+-| one of |-+
| +------------------------------------+ +------- cur -------+ |
+-| -draftfolder +folder -draftmessage |-| one of |-+
| -draftfolder +folder | | +---------------+ |
| -draftmessage | +-| num cur |-+
+------------------------------------+ | sequence . |
| first next |
| prev last |
+---------------+
+-----------------+ +- -prompt "What Now?" -+
>---| one of |---| |---|
| +-------------+ | +--- -prompt string ----+
+-| -editor cmd |-+
| -noedit |
+-------------+
whatnow --- -help ---|
Note: This command does not have MBCS support.
DESCRIPTION
The whatnow command is the default program used by comp, dist, forw, and repl
to prompt you for the disposition of messages. whatnow is part of the Message
Handling (MH) package and can be used with other MH and AIX commands.
By default, whatnow invokes an editor and places the current draft message (or
file) in the editing session. When you exit the editing session, whatnow
prompts: What now? You can specify any of the whatnow subcommands, or you can
press Enter to see a list of the subcommands. These subcommands enable you to
re-edit the message, direct the disposition of the message, or end the
Processed November 8, 1990 WHATNOW(1m,C) 1
WHATNOW(1m,C) AIX Commands Reference WHATNOW(1m,C)
processing of the whatnow command. The whatnow command continues to prompt you
for subcommands until you specify quit.
PARAMETERS
display [ flags] Displays the message being acted upon (redistributed
or replied to). For flags, you can specify any flag
that is valid for the command serving as the lproc.
(You can set a default lproc: entry in
$HOME/.mh_profile.) If you specify any flags that
are not valid for lproc, whatnow does not pass the
path name of the draft to the lproc.
edit [ cmdstring] Re-edits the message using the specified editor.
You can specify the editor and any valid flags to
that editor. If you do not specify an editor,
whatnow selects a default editor according to the
information supplied in the MH profiles. You can
define a default editor for re-editing in
$HOME/.mh_profile. If an editor is not defined for
re-editing in your .mh_profile, whatnow invokes the
editor used in the previous editing session.
list [ flags] Displays the draft. For flags, you can specify any
flag that is valid for the command serving as the
lproc. (You can set a default lproc: entry in
$HOME/.mh_profile.) If you specify any flags that
are not valid for lproc, whatnow does not pass the
path name of the draft to lproc.
push [ flags] Sends the message in the background. You can
specify any valid flag for the send command.
quit [ -delete ] Ends the whatnow session. If you specify -delete,
whatnow deletes the draft. Otherwise, whatnow
stores the draft.
refile [ flags] +folder Files the draft in the specified folder and supplies
a new draft having the previously specified form.
For flags, you can specify any flag that is valid
for the command serving as the fileproc. (You can
set a default fileproc: entry in $HOME/.mh_profile.)
send [ flags] Sends the message. You can specify any valid flags
for the send command.
whom [ flags] Displays the addresses to which the message would be
sent. You can specify any valid flags for the whom
command.
FLAGS
Processed November 8, 1990 WHATNOW(1m,C) 2
WHATNOW(1m,C) AIX Commands Reference WHATNOW(1m,C)
-draftfolder +folder Places the draft message in the specified folder. If you
do not specify this flag, whatnow selects a default draft
folder according to the information supplied in the MH
profiles. You can define a default draft folder in
$HOME/.mh_profile. If -draftfolder +folder is followed
by msg, msgrepresents the -draftmessage attribute.
-draftmessage msg Specifies the draft message. You can use one of the
following message references as msg:
num sequence first
prev cur .
next last
The default draft message is cur.
-editor cmd Specifies that cmd is the initial editor for composing or
revising the message. If you do not specify this flag,
whatnow selects a default editor or suppresses the
initial edit, according to the information supplied in
the MH profiles. You can define a default initial editor
in $HOME/.mh_profile.
-help Displays help information for the command.
-nodraftfolder Places the draft in the file user_mh_directory/draft.
-noedit Suppresses the initial edit.
-prompt string Uses string as the prompt. The default string is
"What now?"
PROFILE ENTRIES
Draft-Folder: Sets your default folder for drafts.
Editor: Sets your default initial editor.
fileproc: Specifies the program used to refile messages.
lasteditor-next: Specifies the editor used after exiting lasteditor.
lproc: Specifies the program used to list the contents of a
message.
Path: Specifies your user_mh_directory.
sendproc: Specifies the program used to send messages.
whomproc: Specifies the program used to determine the users to whom a
message would be sent.
FILES
.profile The user's profile.
$HOME/.mh_profile MH user profile.
user_mh_directory/draft Draft file.
Processed November 8, 1990 WHATNOW(1m,C) 3
WHATNOW(1m,C) AIX Commands Reference WHATNOW(1m,C)
RELATED INFORMATION
See other MH commands: "comp," "dist," "forw," "prompter," "refile,"
"repl," "rmm," "scan," "send," "whom."
See the mh-alias, mh-format, mh-mail, and mh-profile files in AIX Operating
System Technical Reference.
See "Overview of the Message Handling Package" in Managing the AIX Operating
System.
Processed November 8, 1990 WHATNOW(1m,C) 4