Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / conf / doc / RCS / refile.rf,v
1 head    1.12;
2 access;
3 symbols;
4 locks; strict;
5
6
7 1.12
8 date    92.12.19.00.20.58;      author jromine; state Exp;
9 branches;
10 next    1.11;
11
12 1.11
13 date    92.02.10.20.27.30;      author jromine; state Exp;
14 branches;
15 next    1.10;
16
17 1.10
18 date    92.02.06.00.50.51;      author jromine; state Exp;
19 branches;
20 next    1.9;
21
22 1.9
23 date    92.02.05.20.36.53;      author jromine; state Exp;
24 branches;
25 next    1.8;
26
27 1.8
28 date    91.01.14.16.43.06;      author mh;      state Exp;
29 branches;
30 next    1.7;
31
32 1.7
33 date    90.12.18.15.46.28;      author mh;      state Exp;
34 branches;
35 next    1.6;
36
37 1.6
38 date    90.12.18.15.27.36;      author mh;      state Exp;
39 branches;
40 next    1.5;
41
42 1.5
43 date    90.04.05.15.14.54;      author sources; state Exp;
44 branches;
45 next    1.4;
46
47 1.4
48 date    90.03.22.11.31.45;      author sources; state Exp;
49 branches;
50 next    1.3;
51
52 1.3
53 date    90.03.20.19.42.26;      author sources; state Exp;
54 branches;
55 next    1.2;
56
57 1.2
58 date    90.03.20.17.36.41;      author sources; state Exp;
59 branches;
60 next    1.1;
61
62 1.1
63 date    90.03.20.17.21.25;      author sources; state Exp;
64 branches;
65 next    ;
66
67
68 desc
69 @@
70
71
72 1.12
73 log
74 @fixup grammar
75 @
76 text
77 @.\"    @@(MHWARNING)
78 .\" @@(#)$Id: refile.rf,v 1.11 1992/02/10 20:27:30 jromine Exp jromine $
79 .SC REFILE 1
80 .NA
81 refile \- file message in other folders
82 .SY
83 refile 
84 \%[msgs] 
85 \%[\-draft]
86 \%[\-link] \%[\-nolink] 
87 \%[\-preserve] \%[\-nopreserve]
88 \%[\-src\ +folder] 
89 \%[\-file\ file] 
90 \%[\-rmmproc program] \%[\-normmproc]
91 +folder ...
92 \%[\-help]
93 .DE
94 \fIRefile\fR moves (\fImv\fR\0(1)) or links (\fIln\fR\0(1)) messages from a
95 source folder into one or more destination folders.
96 If you think
97 of a message as a sheet of paper, this operation is not
98 unlike filing the sheet of paper (or copies) in file cabinet
99 folders.
100 When a message is filed, it is linked into the
101 destination folder(s) if possible, and is copied otherwise.
102 As long
103 as the destination folders are all on the same file system, multiple filing
104 causes little storage overhead.
105 This facility provides a good way to cross\-file or multiply\-index
106 messages.
107 For example, if a message is received from Jones about
108 the ARPA Map Project, the command
109
110      refile\0cur\0+jones\0+Map
111
112 would allow the message to be found in either of the two
113 folders `jones' or `Map'.
114
115 The option `\-file\ file' directs \fIrefile\fR to use the specified
116 file as the source message to be filed, rather than a message from
117 a folder.
118 Note that the file should be a validly formatted message,
119 just like any other \fIMH\fR message.
120 It should \fBNOT\fR be in mail drop format
121 (to convert a file in mail drop format to a folder of \fIMH\fR messages,
122 see \fIinc\fR\0(1)).
123
124 If a destination folder doesn't exist, \fIrefile\fR will ask if you
125 want to create it.
126 A negative response will abort the file operation.
127 If the standard input for \fIrefile\fR is \fInot\fR a tty,
128 then \fIrefile\fR will not ask any questions and will proceed as if
129 the user answered \*(lqyes\*(rq to all questions.
130
131 The option `\-link' preserves the source folder copy of the message
132 (i.e., it does a \fIln\fR(1) rather than a \fImv\fR(1)), whereas,
133 `\-nolink' deletes the filed messages from the source
134 folder.
135 Normally, when a message is filed, it is assigned the
136 next highest number available in each of the destination folders.
137 Use of the `\-preserve' switch will override this message
138 renaming, but name conflicts may occur, so
139 use this switch cautiously.
140
141 If `\-link' is not specified (or `\-nolink' is specified),
142 the filed messages will be removed from the
143 source folder, by renaming them with a site-dependent prefix (usually 
144 a comma).
145
146 .ne 4
147 If the user has a profile component such as
148
149         rmmproc:        /bin/rm
150
151 then \fIrefile\fR
152 will instead call the named program to delete the message files.
153 The user may specify `\-rmmproc program' on the command line
154 to override this profile specification.
155 The \`-normmproc' option forces 
156 the message files to be deleted
157 by renaming them as described above.
158
159 The `\-draft' switch tells \fIrefile\fR to file the <mh\-dir>/draft.
160 .Fi
161 ^$HOME/\&.mh\(ruprofile~^The user profile
162 .Pr
163 ^Path:~^To determine the user's MH directory
164 .Ps
165 ^Current\-Folder:~^To find the default current folder
166 .Ps
167 ^Folder\-Protect:~^To set mode when creating a new folder
168 .Ps
169 ^rmmproc:~^Program to delete the message
170 .Sa
171 folder(1)
172 .De
173 `\-src\ +folder' defaults to the current folder
174 .Ds
175 `msgs' defaults to cur
176 .Ds
177 `\-nolink'
178 .Ds
179 `\-nopreserve'
180 .Co
181 If `\-src\ +folder' is given, it will become the
182 current folder.
183 If neither `\-link' nor `all' is specified,
184 the current message in the source
185 folder will be set to the last message specified; otherwise, the
186 current message won't be changed.
187
188 If the Previous\-Sequence profile entry is set,
189 in addition to defining the named sequences from the source folder,
190 \fIrefile\fR will also define those sequences for the destination folders.
191 See \fImh\-sequence\fR\0(5) for information concerning the previous sequence.
192 .Bu
193 Since \fIrefile\fR uses your \fIrmmproc\fP to delete the message,
194 the \fIrmmproc\fP must \fBNOT\fP call \fIrefile\fP without 
195 specifying `\-normmproc',
196 or you will create an infinte loop.
197 .En
198 @
199
200
201 1.11
202 log
203 @previous-sequence docs in mh-sequence
204 @
205 text
206 @d2 1
207 a2 1
208 .\" @@(#)$Id: refile.rf,v 1.10 1992/02/06 00:50:51 jromine Exp jromine $
209 d53 1
210 a53 1
211 the user's answer was \*(lqyes\*(rq for all questions.
212 @
213
214
215 1.10
216 log
217 @document no prompting when stdin is not a tty
218 @
219 text
220 @d2 1
221 a2 1
222 .\" @@(#)$Id: refile.rf,v 1.9 1992/02/05 20:36:53 jromine Exp jromine $
223 d115 1
224 a115 1
225 See \fImh\-profile\fR\0(5) for information concerning the previous sequence.
226 @
227
228
229 1.9
230 log
231 @typo
232 @
233 text
234 @d2 1
235 a2 1
236 .\" @@(#)$Id: refile.rf,v 1.8 1991/01/14 16:43:06 mh Exp jromine $
237 d51 3
238 @
239
240
241 1.8
242 log
243 @document refile -[no]rmmproc
244 jlr
245 @
246 text
247 @d2 1
248 a2 1
249 .\" @@(#)$Id: refile.rf,v 1.7 90/12/18 15:46:28 mh Exp Locker: mh $
250 d112 1
251 a112 1
252 See \fImh\-profile\fR\0(1) for information concerning the previous sequence.
253 @
254
255
256 1.7
257 log
258 @jlr
259 @
260 text
261 @d2 1
262 a2 1
263 .\" @@(#)$Id: refile.rf,v 1.6 90/12/18 15:27:36 mh Exp Locker: mh $
264 d14 1
265 d63 3
266 a65 3
267 the filed messages will be removed (\fIunlink\fR\0(2)) from the
268 source folder,
269 similar to the way \fImv\fR\0(1) works.
270 d67 1
271 d72 7
272 a78 3
273 then instead of simply renaming the message file,
274 \fIrefile\fR
275 will call the named program to delete the file.
276 d115 2
277 a116 1
278 the \fIrmmproc\fP must \fBNOT\fP call \fIrefile\fP,
279 @
280
281
282 1.6
283 log
284 @mention not calling refile as rmmproc.
285 jlr
286 @
287 text
288 @d2 1
289 a2 1
290 .\" @@(#)$Id: refile.rf,v 1.5 90/04/05 15:14:54 sources Exp Locker: mh $
291 d108 2
292 a109 2
293 Since \fIrefile\fR uses your \*(lqrmmproc\*(rq to delete the message,
294 the \*(lqrmmproc\*(rq must \fBNOT\fP call \fIrefile\fP,
295 @
296
297
298 1.5
299 log
300 @add ID
301 @
302 text
303 @d2 1
304 a2 1
305 .\" @@(#)$Id:$
306 d107 4
307 @
308
309
310 1.4
311 log
312 @put things back, do .NA stuff another way
313 @
314 text
315 @d2 1
316 @
317
318
319 1.3
320 log
321 @typo
322 @
323 text
324 @d2 2
325 a3 2
326 .TH REFILE 1 @@(MHCENTERFOOT) @@(MHLEFTFOOT)
327 .SH .NA
328 d5 1
329 a5 1
330 .SH .SY
331 @
332
333
334 1.2
335 log
336 @fixup for makewhatis
337 @
338 text
339 @d2 1
340 a2 1
341 .TH REFILE 1 [mh.6] MH
342 @
343
344
345 1.1
346 log
347 @Initial revision
348 @
349 text
350 @d2 2
351 a3 2
352 .SC REFILE 1
353 .NA
354 d5 1
355 a5 1
356 .SY
357 @