|
|
1.1 root 1: .\" @(MHWARNING)
2: .TH WHATNOW 1 "April 22, 1986" MH [mh.6]
3: .UC 6
4: .SH NAME
5: whatnow \- prompting front\-end for send
6: .SH SYNOPSIS
7: .in +.5i
8: .ti -.5i
9: whatnow
10: \%[\-draftfolder\ +folder] \%[\-draftmessage\ msg] \%[\-nodraftfolder]
11: \%[\-editor\ editor] \%[\-noedit]
12: \%[\-prompt\ string]
13: \%[file]
14: \%[\-help]
15: .in -.5i
16: .SH DESCRIPTION
17: \fIWhatnow\fR is the default program that queries the user about the
18: disposition of a composed draft.
19: It is normally invoked by one of
20: \fIcomp\fR, \fIdist\fR, \fIforw\fR, or \fIrepl\fR
21: after the initial edit.
22:
23: When started,
24: the editor is started on the draft
25: (unless `\-noedit' is given, in which case the initial edit is suppressed).
26: Then, \fIwhatnow\fR repetitively
27: prompts the user with \*(lqWhat now?\*(rq and awaits a response.
28: The valid responses are
29: .nf
30: .in .5i
31: .ta \w'\fBrefile +folder\fR 'u
32: ^\fBdisplay\fR~^to list the message being distributed/replied\-to on
33: ^~^the terminal
34: ^\fBedit\fR~^to re\-edit using the same editor that was used on the
35: ^~^preceding round unless a profile entry
36: ^~^\*(lq<lasteditor>\-next: <editor>\*(rq names an alternate editor
37: ^\fBedit <editor>\fR~^to invoke <editor> for further editing
38: ^\fBlist\fR~^to list the draft on the terminal
39: ^\fBpush\fR~^to send the message in the background
40: ^\fBquit\fR~^to terminate the session and preserve the draft
41: ^\fBquit \-delete\fR~^to terminate, then delete the draft
42: ^\fBrefile +folder\fR~^to refile the draft into the given folder
43: ^\fBsend\fR~^to send the message
44: ^\fBsend \-watch\fR~^to cause the delivery process to be monitored
45: ^\fBwhom\fR~^to list the addresses that the message will go to
46: ^\fBwhom \-check\fR~^to list the addresses and verify that they are
47: ^~^acceptable to the transport service
48: .fi
49: .re
50:
51: For the \fBedit\fR response,
52: any valid switch to the editor is valid.
53: Similarly,
54: for the \fBsend\fR and \fBwhom\fR responses,
55: any valid switch to \fIsend\fR\0(1) and \fIwhom\fR\0(1) commands,
56: respectively,
57: are valid.
58: For the \fBpush\fR response,
59: any valid switch to \fIsend\fR\0(1) is valid
60: (as this merely invokes \fIsend\fR with the `\-push' option).
61: For the \fIrefile\fR response,
62: any valid switch to the \fIfileproc\fR is valid.
63: For the \fBdisplay\fR and \fBlist\fR responses,
64: any valid argument to the \fIlproc\fR is valid.
65: If any non\-switch arguments are present,
66: then the pathname of the draft will be excluded from the argument list
67: given to the \fIlproc\fR
68: (this is useful for listing another \fIMH\fR message).
69:
70: See \fImh\-profile\fR\0(5) for further information
71: about how editors are used by MH.
72: It also discusses how complex envariables can be used to direct
73: \fIwhatnow\fR's actions.
74:
75: The `\-prompt\ string' switch sets the prompting string for \fIwhatnow\fR.
76:
77: The `\-draftfolder\ +folder' and `\-draftmessage\ msg' switches invoke the
78: \fIMH\fR draft folder facility.
79: This is an advanced (and highly useful) feature.
80: Consult the \fBAdvanced Features\fR section of the \fIMH\fR manual for more
81: information.
82: .Fi
83: ^$HOME/\&.mh\(ruprofile~^The user profile
84: ^<mh\-dir>/draft~^The draft file
85: .Pr
86: ^Path:~^To determine the user's MH directory
87: .Ps
88: ^Draft\-Folder:~^To find the default draft\-folder
89: .Ps
90: ^Editor:~^To override the default editor
91: .Ps
92: ^<lasteditor>\-next:~^To name an editor to be used after exit from <lasteditor>
93: .Ps
94: ^fileproc:~^Program to refile the message
95: .Ps
96: ^lproc:~^Program to list the contents of a message
97: .Ps
98: ^sendproc:~^Program to use to send the message
99: .Ps
100: ^whomproc:~^Program to determine who a message would go to
101: .Sa
102: send(1), whom(1)
103: .De
104: `\-prompt\ \*(lqWhat\ Now?\ \*(rq'
105: .Co
106: None
107: .Bu
108: The argument to the `\-prompt' switch must be interpreted as a single token
109: by the shell that invokes \fIwhatnow\fR.
110: Therefore,
111: one must usually place the argument to this switch inside double\-quotes.
112:
113: If \fIsendproc\fR is \fIsend\fR,
114: then \fIwhatnow\fR uses a built\-in \fIsend\fR,
115: it does not actually run the \fIsend\fR program.
116: Hence, if you define your own \fIsendproc\fR,
117: don't call it \fIsend\fR since \fIwhatnow\fR won't run it.
118: .En
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.