1 .TH MH-DRAFT %manext5% "November 6, 2012" "%nmhversion%"
6 mh-draft \- draft folder facility for nmh message system
8 There are a number of interesting advanced facilities for the composition of
11 .SS "The Draft Folder"
19 commands have two additional switches,
25 which allow you to manipulate the various draft messages you are composing.
30 is used, these commands are
31 directed to construct a draft message in the indicated folder.
33 .RI \*(lq Draft\-Folder \*(rq
34 profile entry may be used to declare a default draft folder for use with
45 is given, the specified draft is used to compose the message. If
49 draft defaults to `new' (create a new draft) unless the user invokes
53 in which case the default is `cur'.
55 Hence, the user may have several message compositions in progress
56 simultaneously. Now, all of the
58 tools are available on each of the user's message drafts (e.g.
62 and so on). If the folder does not exist, the user is asked if it should be
63 created (just like with
65 Also, the last draft message
66 the user was composing is known as `cur' in the draft folder.
70 command has these switches as well. Hence,
71 from the shell, the user can send off whatever drafts desired using the
74 `msgs' convention with
77 If no `msgs' are given, it defaults to `cur'.
79 In addition, all five programs have a
81 switch, which undoes the last occurrence of
84 (useful if the latter occurs in the user's
88 If the user does not give the
91 switch, then all these commands act \*(lqnormally\*(rq. Note that the
97 still refers to the file called `draft' in the user's
99 directory. In the interests of economy of expression, when using
103 the user needn't prefix the draft `msg' or `msgs' with
106 commands accept a `file' or `files' argument, and they will, if given
109 treat these arguments as `msg' or `msgs'. (This may appear to be
110 inconsistent, at first, but it saves a lot of typing) Hence,
114 send -draftfolder +drafts first
122 send -draftfolder +drafts -draftmessage first
126 To make all this a bit more clear, here are some examples. Let's assume
127 that the following entries are in the
133 Draft\-Folder: +drafts
134 sendf: \-draftfolder +drafts
138 Furthermore, let's assume that the program
140 is a (symbolic) link in the user's
144 Then, any of the commands
155 constructs the message draft in the `draft' folder using the `new'
156 message number. Furthermore, they each define `cur' in this folder to
157 be that message draft. If the user were to use the
159 option at `What now?' level, then later on, if no other draft composition
160 was done, the draft could be sent with simply
168 Or, if more editing was required, the draft could be edited with
176 Instead, if other drafts had been composed in the meantime, so that this
177 message draft was no longer known as `cur' in the `draft' folder, then
180 the folder to see which message draft in the
181 folder should be used for editing or sending. Clever users could even
188 comp -use `pick +drafts -to nmh-workers`
196 sendf `pick +drafts -to nmh-workers`
202 example, the output from
204 must resolve to a single message draft (it makes no sense to talk about
205 composing two or more drafts with one invocation of
209 example, as many message drafts as desired can appear, since
211 doesn't mind sending more than one draft at a time.
213 Note that the argument
216 is not included in the profile entry for
222 directly, they supply
224 with the UNIX pathname of the message draft, and
231 is concerned, a draft folder is not being used.
233 It is important to realize that
235 treats the draft folder like a standard
237 folder in nearly all respects. There are two exceptions:
239 First, under no circumstancs will the
242 switch cause the named folder to become the current folder.
244 Obviously, if the folder appeared in the context of a standard
256 it might become the current folder, depending on the context changes of the
260 Second, although conceptually
262 deletes the `msgs' named in the draft folder, it does not call
264 to perform the deletion.
265 .SS "What Happens if the Draft Exists"
273 are invoked and the draft you indicated already exists, these programs
274 will prompt the user for a reponse directing the program's action.
279 Draft ``/home/foobar/nmhbox/draft'' exists (xx bytes).
284 The appropriate responses and their meanings are:
290 .BR ^replace~^ "- deletes the draft and starts afresh"
291 .BR ^list~^ "- lists the draft"
292 .BR ^refile~^ "- files the draft into a folder and starts afresh"
293 .BR ^quit~^ "- leaves the draft intact and exits"
297 In addition, if you specified
300 to the command, then one other response will be accepted:
306 .BR ^new~^ "- finds a new draft"
316 command will accept one more response:
322 .BR ^use~^ "- re-uses the draft"