2 .\" @(#)$Id: whatnow.rf,v 1.9 1992/10/16 21:36:30 jromine Exp $
5 whatnow \- prompting front-end for send
8 \%[\-draftfolder\ +folder] \%[\-draftmessage\ msg] \%[\-nodraftfolder]
9 \%[\-editor\ editor] \%[\-noedit]
14 \fIWhatnow\fR is the default program that queries the user about the
15 disposition of a composed draft.
16 It is normally invoked by one of
17 \fIcomp\fR, \fIdist\fR, \fIforw\fR, or \fIrepl\fR
18 after the initial edit.
21 the editor is started on the draft
22 (unless `\-noedit' is given, in which case the initial edit is suppressed).
23 Then, \fIwhatnow\fR repetitively
24 prompts the user with \*(lqWhat now?\*(rq and awaits a response.
25 The valid responses are:
29 .ta \w'\fBrefile +folder\fR 'u
30 ^\fBdisplay\fR~^to list the message being distributed/replied\-to on
32 ^\fBedit\fR~^to re\-edit using the same editor that was used on the
33 ^~^preceding round unless a profile entry
34 ^~^\*(lq<lasteditor>\-next: <editor>\*(rq names an alternate editor
35 ^\fBedit <editor>\fR~^to invoke <editor> for further editing
36 ^\fBlist\fR~^to list the draft on the terminal
37 ^\fBpush\fR~^to send the message in the background
38 ^\fBquit\fR~^to terminate the session and preserve the draft
39 ^\fBquit \-delete\fR~^to terminate, then delete the draft
40 ^\fBrefile +folder\fR~^to refile the draft into the given folder
41 ^\fBsend\fR~^to send the message
42 ^\fBsend \-watch\fR~^to cause the delivery process to be monitored
43 ^\fBwhom\fR~^to list the addresses that the message will go to
44 ^\fBwhom \-check\fR~^to list the addresses and verify that they are
45 ^~^acceptable to the transport service
49 For the \fBedit\fR response,
50 any valid switch to the editor is valid.
52 for the \fBsend\fR and \fBwhom\fR responses,
53 any valid switch to \fIsend\fR\0(1) and \fIwhom\fR\0(1) commands,
56 For the \fBpush\fR response,
57 any valid switch to \fIsend\fR\0(1) is valid
58 (as this merely invokes \fIsend\fR with the `\-push' option).
59 For the \fIrefile\fR response,
60 any valid switch to the \fIfileproc\fR is valid.
61 For the \fBdisplay\fR and \fBlist\fR responses,
62 any valid argument to the \fIlproc\fR is valid.
63 If any non\-switch arguments are present,
64 then the pathname of the draft will be excluded from the argument list
65 given to the \fIlproc\fR
66 (this is useful for listing another \fIMH\fR message).
68 See \fImh\-profile\fR\0(5) for further information
69 about how editors are used by MH.
70 It also discusses how complex envariables can be used to direct
71 \fIwhatnow\fR's actions.
73 The `\-prompt\ string' switch sets the prompting string for \fIwhatnow\fR.
75 The `\-draftfolder\ +folder' and `\-draftmessage\ msg' switches invoke the
76 \fIMH\fR draft folder facility.
77 This is an advanced (and highly useful) feature.
78 Consult the \fBAdvanced Features\fR section of the \fIMH\fR manual for more
81 ^$HOME/\&.mh\(ruprofile~^The user profile
82 ^<mh\-dir>/draft~^The draft file
84 ^Path:~^To determine the user's MH directory
86 ^Draft\-Folder:~^To find the default draft\-folder
88 ^Editor:~^To override the default editor
90 ^<lasteditor>\-next:~^To name an editor to be used after exit from <lasteditor>
93 ^automhnproc:~^Program to automatically run prior to sending
94 ^~^if the draft is an \fImhn\fR composition file
97 ^fileproc:~^Program to refile the message
99 ^lproc:~^Program to list the contents of a message
101 ^sendproc:~^Program to use to send the message
103 ^whomproc:~^Program to determine who a message would go to
107 `\-prompt\ \*(lqWhat\ Now?\ \*(rq'
111 The argument to the `\-prompt' switch must be interpreted as a single token
112 by the shell that invokes \fIwhatnow\fR.
114 one must usually place the argument to this switch inside double\-quotes.
116 If the initial edit fails, \fIwhatnow\fR deletes your draft (by renaming
117 it with a leading comma); failure of a later edit preverves the draft.
119 If \fIwhatnowproc\fR is \fIwhatnow\fR,
120 then \fIcomp\fR, \fIdist\fP, \fIforw\fP, and \fIrepl\fP use
121 a built\-in \fIwhatnow\fR,
122 and do not actually run the \fIwhatnow\fR program.
123 Hence, if you define your own \fIwhatnowproc\fR,
124 don't call it \fIwhatnow\fR since it won't be run.
126 If \fIsendproc\fR is \fIsend\fR,
127 then \fIwhatnow\fR uses a built\-in \fIsend\fR,
128 it does not actually run the \fIsend\fR program.
129 Hence, if you define your own \fIsendproc\fR,
130 don't call it \fIsend\fR since \fIwhatnow\fR won't run it.