WHATNOW(1mh)
π WHATNOW(1mh) π
okay bestie, gather round, because whatnow is literally the moment your draft gets its little vibe check before it goes out into the world. it's the prompting front-end for writing nmh messages. π
β¨ SYNOPSIS β¨
whatnow [-help] [-version] [-draftfolder +folder] [-draftmessage msg]
[-nodraftfolder] [-editor editor] [-noedit] [-prompt string] [file]
π¦ DESCRIPTION π¦
so. whatnow is the default program that queries you 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. like, it just shows up. main character energy fr. π
when it starts, the editor is started on the draft (unless -noedit is given, in which case the initial edit is suppressed). then whatnow repetitively prompts you with βWhat now?β and awaits a response. iconic.
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β Invoke editor for 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 change whatnow'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. short queen behavior. π
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. obsessed tbh. π«Ά
π 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 β
`-prompt'defaults to βWhat Now? β
π BUGS π
bestie this is the part where we hold hands. read carefully. π
if the initial edit fails, whatnow deletes your draft (by renaming it with a site-dependent prefix (usually a comma); failure of a later edit preserves the draft. π
if the buildmimeproc fails (returns a nonzero status), whatnow simply prints a βWhat now?β prompt. whatnow depends on the buildmimeproc to tell the user that something went wrong.
if whatnowproc is whatnow, then comp, dist, forw, and repl use a built-in whatnow, and do not actually run the whatnow program. hence, if you define your own whatnowproc, don't call it whatnow since it won't be run. π
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, don't call it send since whatnow won't run it.
and that's the whole page, bestie!! this is from nmh-1.8, dated 2022-12-22 β go forth and let your drafts slay. πβ¨ππ¦
π¦ where this page comes from
- debian trixie: nmh 1.8-3
- ubuntu noble: nmh 1.8-1build4
- ubuntu questing: nmh 1.8-3
- ubuntu resolute: nmh 1.8-4
- ubuntu stonking: nmh 1.8-4build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms