1 .TH MH-DRAFT %manext5% 2012-03-18 "%nmhversion%"
6 mh-draft \- draft folder facility for nmh message system
8 There are a number of interesting advanced facilities for the composition of
10 .SS "The Draft Folder"
19 commands each take the switches
25 which allow you to manipulate the various draft messages you are composing.
30 is used, draft messages will be constructed in the indicated folder. The
31 .RI \*(lq Draft\-Folder \*(rq
32 profile entry may be used to specify a default draft folder.
37 is given, the specified draft is used to compose the message. If
40 is not used, then the draft defaults to `new' (create a new draft)
41 unless the user invokes
45 in which case the default is `cur'.
47 Hence, the user may have several message compositions in progress
48 simultaneously. Now, all of the
50 tools are available on each of the user's message drafts (e.g.
54 and so on). If the folder does not exist, the user is asked if it should be
55 created (just like with
57 The last draft message the user was composing is known as `cur'
62 the user can send drafts using the standard
64 `msgs' convention with
67 If no `msgs' are given, it defaults to `cur'.
69 In addition, all of these programs have a
71 switch, which undoes the last occurrence of
74 (useful if a default is specified in the user's
78 If the user does not give the
81 switch, then all these commands act \*(lqnormally\*(rq. Note that the
87 still refers to the file called `draft' in the user's
89 directory. In the interests of economy of expression, when using
93 the user needn't prefix the draft `msg' or `msgs' with
95 Both of these commands accept a `file' or `files' argument and they will,
99 treat these arguments as `msg' or `msgs'. (This may appear to be
100 inconsistent, at first, but it saves a lot of typing.) Hence,
104 send -draftfolder +drafts first
112 send -draftfolder +drafts -draftmessage first
116 To make all this a bit more clear, here are some examples. Let's assume
117 that the following entries are in the
123 Draft\-Folder: drafts
124 sendf: \-draftfolder +drafts
128 Furthermore, let's assume that the program
130 is a (symbolic) link in the user's
145 will construct the message draft in the `draft' folder using the `new'
146 message number. Furthermore, they each define `cur' in this folder to
147 be that message draft. If the user were to use the
149 option at the `What now?' prompt, then later on, if no other draft composition
150 was done, the draft could be sent with simply
158 Or, if more editing was required, the draft could be edited with
166 If other drafts had been composed in the meantime, so that this message
167 draft was no longer known as `cur' in the `draft' folder, then
170 the folder to see which message draft should be used for editing or sending.
171 Clever users could even employ a backquoted
177 comp -use \`pick +drafts -to nmh-workers\`
185 sendf \`pick +drafts -to nmh-workers\`
191 example, the output from
193 must resolve to a single message draft (it makes no sense to talk about
194 composing two or more drafts with one invocation of
198 example, as many message drafts as desired can appear, since
200 doesn't mind sending more than one draft at a time.
202 Note that the argument
205 is not included in the profile entry for
211 directly, they supply
213 with the Unix pathname of the message draft;
220 is concerned, a draft folder is not being used.
222 It is important to realize that
224 treats the draft folder like a standard
226 folder in nearly all respects. There are two exceptions:
228 First, under no circumstances will the
231 switch cause the named folder to become the current folder.
232 Obviously, if the folder appeared in the context of a standard
244 it might become the current folder, depending on the context changes of the
248 Second, although conceptually
250 deletes the `msgs' named in the draft folder, it does not call
252 to perform the deletion.
253 .SS "What Happens if the Draft Exists"
261 are invoked and the draft you indicated already exists, these programs
262 will prompt the user for a response directing the program's action.
267 Draft "/home/foobar/nmhbox/draft" exists (xx bytes).
272 The appropriate responses and their meanings are:
278 deletes the draft and starts afresh
284 files the draft into a folder and starts afresh
287 leaves the draft intact and exits
291 In addition, if you specified
294 to the command, then one other response will be accepted:
310 command will accept one more response:
328 .SH "PROFILE COMPONENTS"
333 For a default draft folder