{
    "mode": "man",
    "parameter": "whatnow",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/whatnow/1/json",
    "generated": "2026-06-15T13:10:44Z",
    "synopsis": "whatnow [-help] [-version] [-draftfolder +folder] [-draftmessage msg] [-nodraftfolder] [-edi‐‐\ntor editor] [-noedit] [-prompt string] [file]",
    "sections": {
        "NAME": {
            "content": "whatnow - prompting front-end for writing nmh messages\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "whatnow [-help] [-version] [-draftfolder +folder] [-draftmessage msg] [-nodraftfolder] [-edi‐‐\ntor editor] [-noedit] [-prompt string] [file]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "whatnow is the default program that queries the user about  the  disposition  of  a  composed\ndraft.   It is normally automatically invoked by one of the nmh commands comp, dist, forw, or\nrepl after the initial edit.\n\nWhen started, the editor is started on the draft (unless -noedit is given, in which case  the\ninitial  edit  is  suppressed).  Then, whatnow repetitively prompts the user with “What now?”\nand awaits a response.  The valid responses are:\n\nedit             re-edit using the same editor that was used on the preceding round  un‐\nless  a  profile entry “<lasteditor>-next: <editor>” names an alternate\neditor\n\nedit editor      invoke editor for further editing\n\nrefile +folder   refile the draft into the given folder\n\nmime             process the draft as MIME composition file using the buildmimeproc com‐\nmand (mhbuild by default)\n\ndisplay          list the message being distributed/replied-to on the terminal\n\nlist             list the draft on the terminal\n\nsend             send the message\n\nsend -watch      send the message and monitor the delivery process\n\npush             send the message in the background\n\nwhom             list the addresses that the message will go to\n\nwhom -check      list the addresses and verify that they are acceptable to the transport\nservice\n\nquit             preserve the draft and exit\n\nquit -delete     delete the draft and exit\n\ndelete           delete the draft and exit\n\ncd directory     use directory when interpreting attachment file names\n\npwd              print the working directory for attachment files\n\nls [ls-options]  list files in the attachment working directory using the ls command\n\nattach [-v] files\nadd the named files to the message as MIME attachments; -v displays the\nmhbuild directive that send(1) will use\n\nalist [-ln]      list the MIME attachments, either short, long [-l] or numbered [-n]\n\ndetach [-n] files-or-numbers\nremove MIME attachments, either by file name or by number with -n\n\nWhen  entering  your  response, you need only type enough characters to uniquely identify the\nresponse.\n\nFor the edit response, any valid switch to the editor is valid.\n\nFor the send and push responses, any valid switch to send(1) is valid (as push merely invokes\nsend with the -push option).\n\nFor the whom response, any valid switch to whom(1) is valid.\n\nFor the refile response, any valid switch to the fileproc is valid.\n\nFor  the  display  and list responses, any valid argument to the lproc is valid.  If any non-\nswitch arguments are present, then the pathname of the draft will be excluded from the  argu‐\nment list given to the lproc (this is useful for listing another nmh message).\n\nSee  mh-profile(5)  for  further information about how editors are used by nmh.  It also dis‐\ncusses how environment variables can be used to direct whatnow's actions in complex ways.\n\nThe -prompt string switch sets the prompting string for whatnow.\n\nThe -draftfolder +folder and -draftmessage msg switches invoke the nmh draft folder facility.\nThis  is  an advanced (and highly useful) feature.  Consult the mh-draft(5) man page for more\ninformation.\n\nIf your nmh was configured with readline enabled, you'll be able to use  filename  completion\nand  other  readline  features at the prompt.  These are particularly useful with the cd, ls,\nattach, and detach commands for managing MIME attachments.\n",
            "subsections": []
        },
        "FILES": {
            "content": "$HOME/.mhprofile          The user profile\n<mh-dir>/draft             The draft file\n",
            "subsections": []
        },
        "PROFILE COMPONENTS": {
            "content": "Path:                To determine the user's nmh directory\nDraft-Folder:        To find the default draft-folder\nEditor:              To override the default editor\n<lasteditor>-next:   To name an editor to be used after exit\nfrom <lasteditor>\nbuildmimeproc:       Program to translate MIME composition files\nfileproc:            Program to refile the message\nlproc:               Program to list the contents of a message\nsendproc:            Program to use to send the message\nwhomproc:            Program to determine who a message would go to\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "send(1), whom(1)\n",
            "subsections": []
        },
        "DEFAULTS": {
            "content": "`-prompt' defaults to “What Now? ”\n",
            "subsections": []
        },
        "BUGS": {
            "content": "If the initial edit fails, whatnow deletes your draft (by renaming it with  a  site-dependent\nprefix (usually a comma); failure of a later edit preserves the draft.\n\nIf  the  buildmimeproc  fails (returns a nonzero status), whatnow simply prints a “What now?”\nprompt.  whatnow depends on the buildmimeproc to tell the user that something went wrong.\n\nIf whatnowproc is whatnow, then comp, dist, forw, and repl use a built-in whatnow, and do not\nactually  run  the whatnow program.  Hence, if you define your own whatnowproc, don't call it\nwhatnow since it won't be run.\n\nIf sendproc is send, then whatnow uses a built-in send, it does not  actually  run  the  send\nprogram.   Hence, if you define your own sendproc, don't call it send since whatnow won't run\nit.\n\n\n\nnmh-1.7.1                                    2014-01-23                                 WHATNOW(1mh)",
            "subsections": []
        }
    },
    "summary": "whatnow - prompting front-end for writing nmh messages",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "send",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/send/1/json"
        },
        {
            "name": "whom",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/whom/1/json"
        }
    ]
}