whatnow(1mh)
NAME
whatnow − prompting front-end for send
SYNTAX
whatnow [−draftfolder +folder] [−draftmessage msg] [−nodraftfolder] [−editor editorname] [−noedit] [−prompt string] [file] [−help]
DESCRIPTION
After you have finished an editing session from comp, dist, forw or repl; the whatnow program prompts you for the next required action. Press <RETURN> at the what now? prompt, to see a list of the available options. These options are:
display [<switches>]
edit [<editorname> <switches>]
list [<switches>]
push [<switches>]
quit [-delete]
refile [<switches>] +folder
send [−watch <switches>]
whom [−check <switches>]
Use display if you have been using repl or dist and want to see the original message. Use edit [<editorname>switches] if you want to continue editing the draft. Use list to display the draft message. If you use push, send operates in the background and frees your terminal whilst the message is being sent.
Use quit to exit from whatnow and to save the draft message. The quit −d option will exit from whatnow and delete the draft message.
Use refile+folder to refile the draft message in a specified folder. The send option will cause the message to be delivered. Use whom to find out who will receive the mail when it is sent.
Unless the −noedit argument is set, the editor starts when whatnow is invoked.
For the edit response, any valid switch to the editor is valid. Similarly, for the send and whom responses, any valid switch to send and whom commands, respectively, are valid.
For the push response, use any valid switch to send. MH invokes send with the −push option.
For the refile response, any valid switch to the fileproc is valid.
For the display and list responses, any valid argument to the lproc is valid. If any non-switch arguments are present, then the pathname of the draft will be excluded from the argument list given to the lproc (this is useful for listing another MH message).
See mh-profile() for further information about how editors are used by MH. It also describes proc and fileproc and shows how complex variables can be used to direct whatnow’s actions.
OPTIONS
The default prompt is What now?. You can change this using the −prompt string option. You must encase the string in double quotes (" "), if you want the prompt string to include spaces. The following example would set the prompt to be "Now What?".
$ whatnow -prompt "Now What?"
The whatnow program normally searches for the draft message in your Mail directory. You can change this by using the −draftfolder<+folder> option. In the following example, whatnow would search in the +test folder for the draft message.
$ whatnow -draftfolder +test
This would be useful, only if you had previously created a draft message in a specific folder. See comp() for details.
You can also direct whatnow to search for a specific file by using the draftmessage<filename> option. If you do not specify a directory path, whatnow will assume that it is located in your Mail directory. Similarly, if you specify a directory pathname that is not absolute (that is, does not begin with a / ./ or a ../) whatnow will asume that the path is relative to your Mail directory and not your home directory.
If sendproc is send, then whatnow uses a built-in send, it does not actually run the send program. Hence, if you define your own sendproc, do not call it send, as whatnow will not run it.
FILES
| $HOME/.mh_profile | The user profile |
| <mh−dir>/draft | The draft file |
PROFILE COMPONENTS
| Path: | To determine your MH directory |
| Draft-Folder: | To find the default draft-folder |
| Editor: | To override the default editor |
| <lasteditor>−next: | To name an editor to be used after exit from <lasteditor> |
| fileproc: | Program to refile the message |
| lproc: | Program to list the contents of a message |
| sendproc: | Program to use to send the message |
| whomproc: | Program to determine who a message would go to |
SEE ALSO
comp(1mh), send(1mh), whom(1mh)
Commands