WHATNOW(1)
π whatnow(1) β the General Commands Manual glow-up π
okay bestie, sit down, hydrate, because we're talking about whatnow β the prompting front-end for writing nmh messages. she's a manual page from the General Commands Manual section and she's literally the moment before you hit send on your whole life. π
β¨ NAME β¨
whatnow β prompting front-end for writing nmh messages
fr fr that's it, that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
whatnow [-help] [-version] [-draftfolder +folder] [-draftmessage msg]
[-nodraftfolder] [-editor editor] [-noedit] [-prompt string] [file]
π DESCRIPTION π
so whatnow is the default program that queries the user about the disposition of a composed draft. it's normally automatically invoked by one of the nmh commands comp, dist, forw, or repl after the initial edit. she just shows up. she's invited. it's giving main character energy. π
When started, the editor is started on the draft β unless -noedit is given, in which case the initial edit is suppressed. Then, whatnow repetitively prompts the user with βWhat now?β and awaits a response. iconic behavior honestly.
The valid responses are:
editβ Re-edit using the same editor that was used on the preceding round unless a profile entry β<lasteditor>-next: <editor>β names an alternate editor.edit editorβ Invokeeditorfor further editing.refile +folderβ Refile the draft into folder .mimeβ Process the draft as a MIME composition file using thebuildmimeproccommand which defaults tomhbuild(1).displayβ List the message being replied to or distributed on the terminal.listβ List the draft on the terminal.sendβ Send the message.send -watchβ Send the message and monitor the delivery process.pushβ Send the message in the background.whomβ List the addresses to whom the message will go.whom -checkβ List the addresses and verify that they are acceptable to the transport service.quitβ Preserve the draft and exit.quit -deleteβ Delete the draft and exit.deleteβ Delete the draft and exit.cd directoryβ Use directory when interpreting attachment file names. This does not changewhatnow's process's current working directory so it and child processes, e.g.edit's, do not see the change.pwdβ Print the working directory for attachment files.ls [ls-options]β List files in the attachment working directory usingls(1).attach [-v] filesβ Add the named files to the message as MIME attachments;-vdisplays themhbuild(1)directive thatsend(1)will use.alist [-ln]β List the MIME attachments' filenames.-lgives a long listing showing their full path.-nnumbers them for use withdetach.detach [-n] files-or-numbersβ Remove MIME attachments, either by file name or by number with-n.
When entering your response, you need only type enough characters to uniquely identify the response. lazy girl typing rights!! β¨
For the edit response, any valid switch to the editor is valid.
For the send and push responses, any valid switch to send(1) is valid (as push merely invokes send with the -push option).
For the whom response, any valid switch to whom(1) is valid.
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 nmh message).
See mh-profile(5) for further information about how editors are used by nmh. It also discusses how environment variables can be used to direct whatnow's actions in complex ways. π
The -prompt string switch sets the prompting string for whatnow.
The -draftfolder +folder and -draftmessage msg switches invoke the nmh draft folder facility. This is an advanced (and highly useful) feature. Consult mh-draft(5) for more information. π«Ά
If your nmh was configured with readline enabled, you'll be able to use filename completion and other readline features at the prompt. These are particularly useful with the cd, ls, attach, and detach commands for managing MIME attachments. tab completion girlies stay winning π
π FILES π
$HOME/.mh_profileβ The user profile<mh-dir>/draftβ The draft file
π¦ PROFILE COMPONENTS π¦
Path:β To determine the user's nmh directoryDraft-Folder:β To specify the default draftfolderEditor:β To override the default editor<lasteditor>-next:β To name an editor to be used after exit from<lasteditor>buildmimeproc:β Program to translate MIME composition filesfileproc:β Program to refile the messagelproc:β Program to list the contents of a messagesendproc:β Program to use to send the messagewhomproc:β Program to determine who a message would go to
π SEE ALSO π
π DEFAULTS π
-promptdefaults to βWhat Now? β
π BUGS π
ok this section is the serious one, bestie, read it carefully. no cap.
- If the initial edit fails,
whatnowdeletes your draft (by renaming it with a site-dependent prefix (usually a comma); failure of a later edit preserves the draft. - If the
buildmimeprocfails (returns a nonzero status),whatnowsimply prints a βWhat now?β prompt.whatnowdepends on thebuildmimeprocto tell the user that something went wrong. - If
whatnowprociswhatnow, thencomp,dist,forw, andrepluse a built-inwhatnow, and do not actually run thewhatnowprogram. Hence, if you define your ownwhatnowproc, don't call itwhatnowsince it won't be run. - If
sendprocissend, thenwhatnowuses a built-insend, it does not actually run thesendprogram. Hence, if you define your ownsendproc, don't call itsendsincewhatnowwon't run it.
and that's the whole page, bestie!! π this one came from the nmh-1.8 era, dated 2022-12-22 β so if you're citing it, that's the tea. now go compose something gorgeous and don't forget to quit instead of quit -delete unless you MEAN it ππβ¨
π¦ where this page comes from
- alpine 3.24: nmh-doc 1.8-r3 Β· BSD-3-Clause
- epel 10: nmh 1.8-3.el10_1 Β· BSD
- epel 9: nmh 1.8-1.el9 Β· BSD
- fedora 43: nmh 1.8-9.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: nmh 1.8-10.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms