Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / conf / doc / RCS / folder.rf,v
1 head    1.15;
2 access;
3 symbols;
4 locks; strict;
5
6
7 1.15
8 date    93.08.27.18.13.47;      author jromine; state Exp;
9 branches;
10 next    1.14;
11
12 1.14
13 date    93.08.26.22.59.29;      author jromine; state Exp;
14 branches;
15 next    1.13;
16
17 1.13
18 date    93.08.26.22.56.45;      author jromine; state Exp;
19 branches;
20 next    1.12;
21
22 1.12
23 date    93.08.19.21.20.51;      author jromine; state Exp;
24 branches;
25 next    1.11;
26
27 1.11
28 date    92.10.29.21.50.27;      author jromine; state Exp;
29 branches;
30 next    1.10;
31
32 1.10
33 date    92.02.18.17.47.49;      author jromine; state Exp;
34 branches;
35 next    1.9;
36
37 1.9
38 date    92.02.07.23.57.18;      author jromine; state Exp;
39 branches;
40 next    1.8;
41
42 1.8
43 date    92.02.07.20.16.07;      author jromine; state Exp;
44 branches;
45 next    1.7;
46
47 1.7
48 date    92.02.06.22.01.06;      author jromine; state Exp;
49 branches;
50 next    1.6;
51
52 1.6
53 date    90.12.18.14.28.05;      author mh;      state Exp;
54 branches;
55 next    1.5;
56
57 1.5
58 date    90.04.05.15.12.37;      author sources; state Exp;
59 branches;
60 next    1.4;
61
62 1.4
63 date    90.03.22.11.31.06;      author sources; state Exp;
64 branches;
65 next    1.3;
66
67 1.3
68 date    90.03.20.19.41.43;      author sources; state Exp;
69 branches;
70 next    1.2;
71
72 1.2
73 date    90.03.20.17.36.00;      author sources; state Exp;
74 branches;
75 next    1.1;
76
77 1.1
78 date    90.03.20.17.20.48;      author sources; state Exp;
79 branches;
80 next    ;
81
82
83 desc
84 @@
85
86
87 1.15
88 log
89 @use -[no]create instead of -create policy
90 @
91 text
92 @.\"    @@(MHWARNING)
93 .\" @@(#)$Id: folder.rf,v 1.14 1993/08/26 22:59:29 jromine Exp jromine $
94 .SC FOLDER 1
95 .NA
96 folder, folders \- set/list current folder/message
97 .SY
98 folder
99 \%[+folder] \%[msg]
100 \%[\-all]
101 \%[\-create] \%[\-nocreate]
102 \%[\-print]
103 .\" \%[\-noprint]
104 \%[\-fast] \%[\-nofast]
105 \%[\-header] \%[\-noheader]
106 \%[\-recurse] \%[\-norecurse]
107 \%[\-total] \%[\-nototal]
108 \%[\-list] \%[\-nolist]
109 \%[\-push] \%[\-pop]
110 \%[\-pack] \%[\-nopack]
111 \%[\-verbose] \%[\-noverbose]
112 \%[\-help]
113
114 .ti .5i
115 folders
116 .DE
117 Since the \fIMH\fR environment is the shell, it is easy to lose
118 track of the current folder from day to day.
119 When \fIfolder\fR is given the `\-print' switch (the default),
120 \fIfolder\fR will
121 list the current folder, the number of messages in it, the
122 range of the messages (low\-high), and the current message within
123 the folder, and will flag extra files if they exist.
124 An example of this summary is:
125
126 .nf
127 .if t .in +.5i
128 .ta \w'/rnd/phyl/Mail/EP 'u +\w'has ddd messages 'u +\w'(ddd\-ddd); 'u
129 inbox+  has \016 messages       (\0\03\-\022);  cur=\0\05.
130 .re
131 .if t .in -.5i
132 .fi
133
134 If a `+folder' and/or `msg' are specified, they will
135 become the current folder and/or message.
136 By comparison,
137 when a `+folder' argument is given,
138 this corresponds to a \*(lqcd\*(rq operation in the \fIshell\fR;
139 when no `+folder' argument is given,
140 this corresponds roughly to a \*(lqpwd\*(rq operation in the \fIshell\fR.
141
142 If the specified (or default) folder doesn't exist,
143 the default action is to query the user
144 as to whether the folder should be created;
145 when standard input is not a tty, the answer to 
146 the query is assumed to be \*(lqyes\*(rq.
147
148 Specifying `\-create' will cause \fIfolder\fP to create
149 new folders without any query.
150 (This is the easy way to create an empty folder for use later.)
151 Specifying `\-nocreate' will 
152 cause \fIfolder\fP to exit without creating a non-existant folder.
153 .\"
154 .\" note - this doesn't work at present
155 .\" If `\-noprint' is specified, 
156 .\" a `+folder' and/or `msg' may still be specified
157 .\" to set the current folder and/or message,
158 .\" but the folder summary will not be printed.
159 .Uh "Multiple Folders"
160 Specifying `\-all'
161 will produce a summary line for each top-level
162 folder in the user's MH directory, sorted alphabetically.
163 (If \fIfolder\fR
164 is invoked by a name ending with \*(lqs\*(rq (e.g., \fIfolders\fR\0),
165 `\-all' is assumed).
166 Specifying `\-recurse' with `\-all' will also 
167 produce a line for all sub-folders.
168 These folders are all preceded by the read\-only folders,
169 which occur as \*(lqatr\-cur\-\*(rq entries in the user's \fIMH\fR context.
170 For example,
171
172 .ne 9
173 .nf
174 .if t .in +.5i
175 .ta \w'/rnd/phyl/Mail/EP 'u +\w'has ddd messages 'u +\w'(ddd\-ddd); 'u
176 Folder  \0\0\0# of messages     (\0range\0)     cur msg (other files)
177 /fsd/rs/m/tacc  has \035 messages       (\0\01\-\035);  cur=\023.
178 /rnd/phyl/Mail/EP       has \082 messages       (\0\01\-108);   cur=\082.
179 ff      has \0no messages.
180 inbox+  has \016 messages       (\0\03\-\022);  cur=\0\05.
181 mh      has \076 messages       (\0\01\-\076);  cur=\070.
182 notes   has \0\02 messages      (\0\01\-\0\02); cur=\0\01.
183 ucom    has 124 messages        (\0\01\-124);   cur=\0\06; (others).
184 .ta \w'/rnd/phyl/Mail/EP has 'u
185 \0\0\0\0\0\0\0\0\0\0TOTAL=      339 messages in 7 folders
186 .re
187 .if t .in -.5i
188 .fi
189
190 The \*(lq+\*(rq after inbox indicates that it is the current folder.
191 The \*(lq(others)\*(rq indicates that the folder `ucom' has files
192 which aren't messages.
193 These files may either be sub\-folders,
194 or files that don't belong under the MH file naming scheme.
195
196 The header is output if either a `\-all' or a `\-header' switch
197 is specified; it is suppressed by `\-noheader'.
198 A `\-total' switch will produce only the
199 summary line.
200
201 If `\-fast' is given, only the folder name (or names in the
202 case of `\-all') will be listed.
203 (This is faster because the
204 folders need not be read.)
205
206 If a `+folder' 
207 is given along with the `\-all' switch,
208 \fIfolder\fR will,
209 in addition to setting the current folder,
210 list the top\-level folders for the current folder (with `\-norecurse')
211 or list all sub-folders under the current folder recursively (with `\-recurse').
212 In this case, if a `msg' is also supplied,
213 it will become the current message of `+folder'.
214
215 The `\-recurse' switch lists each folder recursively, so
216 use of this option effectively defeats the speed enhancement of the `\-fast'
217 option,
218 since each folder must be searched for subfolders.
219 Nevertheless, the combination of these options is useful.
220
221 .Uh "Compacting a Folder"
222 The `\-pack' switch will compress the message names in the
223 designated folders, removing holes in message numbering.
224 The `\-verbose' switch directs \fIfolder\fR to tell the user the general
225 actions that it is taking to compress the folder.
226
227 .Uh "The Folder Stack"
228 The `\-push' switch directs \fIfolder\fR to push the current folder onto the
229 \fIfolder\-stack\fR,
230 and make the `+folder' argument the current folder.
231 If `+folder' is not given,
232 the current folder and the top of the \fIfolder\-stack\fR are exchanged.
233 This corresponds to the \*(lqpushd\*(rq operation in the \fICShell\fR.
234
235 The `\-pop' switch directs \fIfolder\fR to discard the top of the
236 \fIfolder\-stack\fR,
237 after setting the current folder to that value.
238 No `+folder' argument is allowed.
239 This corresponds to the \*(lqpopd\*(rq operation in the \fICShell\fR.
240 The `\-push' switch and the `\-pop' switch are mutually exclusive:
241 the last occurrence of either one overrides any previous occurrence of the
242 other.  Both of these switches also set `\-list' by default.
243
244 The `\-list' switch directs \fIfolder\fR to list the contents of the
245 \fIfolder\-stack\fR.
246 No `+folder' argument is allowed.
247 After a successful `\-push' or `\-pop', the `\-list' action is taken,
248 unless a `\-nolist' switch follows them on the command line.
249 This corresponds to the \*(lqdirs\*(rq operation in the \fICShell\fR.
250 The `\-push', `\-pop', and `\-list' switches turn
251 off `\-print'.
252 .Fi
253 ^$HOME/\&.mh\(ruprofile~^The user profile
254 .Pr
255 ^Path:~^To determine the user's MH directory
256 .Ps
257 ^Current\-Folder:~^To find the default current folder
258 .Ps
259 ^Folder\-Protect:~^To set mode when creating a new folder
260 .Ps
261 ^Folder\-Stack:~^To determine the folder stack
262 .\" .Ps
263 .\" ^lsproc:~^Program to list the contents of a folder
264 .Sa
265 refile(1), mhpath(1)
266 .De
267 `+folder' defaults to the current folder
268 .Ds
269 `msg' defaults to none
270 .Ds
271 `\-nofast'
272 .Ds
273 `\-noheader'
274 .Ds
275 `\-nototal'
276 .Ds
277 `\-nopack'
278 .Ds
279 `\-norecurse'
280 .Ds
281 `\-noverbose'
282 .Ds
283 `\-print' is the default if no `\-list', `\-push', or `\-pop' is specified
284 .Ds
285 `\-list' is the default if `\-push', or `\-pop' is specified
286 .Co
287 If `+folder' and/or `msg' are given, they will become the
288 current folder and/or message.
289 .Hi
290 In previous versions of \fIMH\fR,
291 the `\-fast' switch prevented context changes from
292 occurring for the current folder.
293 This is no longer the case: if `+folder' is given,
294 then \fIfolder\fR will always change the current folder to that.
295 .Bu
296 `\-all' forces `\-header' and `\-total'.
297 .sp
298 There is no way to restore the default behavior 
299 (to ask the user whether to create a non-existant folder)
300 after `\-create' or `\-nocreate' is given.
301 .En
302 @
303
304
305 1.14
306 log
307 @note default: -create ask
308 @
309 text
310 @d2 1
311 a2 1
312 .\" @@(#)$Id: folder.rf,v 1.13 1993/08/26 22:56:45 jromine Exp jromine $
313 d10 1
314 a10 1
315 \%[\-create\0policy]
316 d52 4
317 a55 16
318 the action taken is controlled with the `\-create' switch.
319 One of three arguments may be specified:
320 .sp
321 .in +1i
322 .ta 1i
323 .ti -1i
324 \fBalways\fP    indicates that \fIfolder\fR should create the folder.
325 .ti -1i
326 \fBask\fP       indicates that \fIfolder\fR should ask the user.
327 (When standard input is not a tty, the folder is created without any query.)
328 .ti -1i
329 \fBnever\fP     indicates that \fIfolder\fR should not create the folder.
330 .in -1i
331 .sp
332 (Using \*(lqfolder -create always +folder\*(rq
333 is an easy way to create an empty folder for use later.)
334 d57 6
335 a67 1
336
337 a179 2
338 `\-create\0ask'
339 .Ds
340 d206 4
341 @
342
343
344 1.13
345 log
346 @document folder -create policy
347 @
348 text
349 @d2 1
350 a2 1
351 .\" @@(#)$Id: folder.rf,v 1.12 1993/08/19 21:20:51 jromine Exp jromine $
352 d186 2
353 @
354
355
356 1.12
357 log
358 @note that -all forces -total
359 @
360 text
361 @d2 1
362 a2 1
363 .\" @@(#)$Id: folder.rf,v 1.11 1992/10/29 21:50:27 jromine Exp jromine $
364 d10 1
365 a44 6
366 If the specified (or default) folder doesn't exist,
367 the user will be queried as to whether the folder should be created.
368 When standard input is not a tty, the folder is
369 created without any query.
370 (This is the easy way to create an empty folder for use later.)
371
372 d50 18
373 @
374
375
376 1.11
377 log
378 @zap lsproc
379 @
380 text
381 @d2 1
382 a2 1
383 .\" @@(#)$Id: folder.rf,v 1.10 1992/02/18 17:47:49 jromine Exp jromine $
384 d199 1
385 a199 1
386 `\-all' forces `\-header'.
387 @
388
389
390 1.10
391 log
392 @document bug
393 @
394 text
395 @d2 1
396 a2 1
397 .\" @@(#)$Id: folder.rf,v 1.9 1992/02/07 23:57:18 jromine Exp jromine $
398 d165 2
399 a166 2
400 .Ps
401 ^lsproc:~^Program to list the contents of a folder
402 @
403
404
405 1.9
406 log
407 @typo
408 @
409 text
410 @d2 1
411 a2 1
412 .\" @@(#)$Id: folder.rf,v 1.8 1992/02/07 20:16:07 jromine Exp jromine $
413 d198 2
414 @
415
416
417 1.8
418 log
419 @undocument -noprint
420 @
421 text
422 @d2 1
423 a2 1
424 .\" @@(#)$Id: folder.rf,v 1.7 1992/02/06 22:01:06 jromine Exp jromine $
425 d126 1
426 a126 1
427 desginated folders, removing holes in message numbering.
428 @
429
430
431 1.7
432 log
433 @rewrite
434 @
435 text
436 @d2 1
437 a2 1
438 .\" @@(#)$Id: folder.rf,v 1.6 1990/12/18 14:28:05 mh Exp jromine $
439 d10 2
440 a11 1
441 \%[\-print] \%[\-noprint]
442 d153 2
443 a154 1
444 The `\-push', `\-pop', and `\-list' switches set `\-noprint'.
445 @
446
447
448 1.6
449 log
450 @mention creating a folder when stdin is not a tty
451 jlr
452 @
453 text
454 @d2 1
455 a2 1
456 .\" @@(#)$Id: folder.rf,v 1.5 90/04/05 15:12:37 sources Exp Locker: mh $
457 d10 1
458 a12 1
459 \%[\-pack] \%[\-nopack]
460 a14 1
461 \%[\-print] \%[\-noprint]
462 d17 2
463 a25 1
464
465 d27 1
466 a27 8
467 the current folder and/or message may be set,
468 or all folders may be listed.
469 When a `+folder' argument is given,
470 this corresponds to a \*(lqcd\*(rq operation in the \fICShell\fR;
471 when no `+folder' argument is given,
472 this corresponds roughly to a \*(lqpwd\*(rq operation in the \fICShell\fR.
473
474 \fIFolder\fR will
475 d31 1
476 a31 1
477 An example of the output is:
478 d43 19
479 d63 8
480 a70 3
481 will produce a line for each folder in the user's MH directory,
482 sorted alphabetically.
483 These folders are preceded by the read\-only folders,
484 d74 1
485 d98 1
486 a98 1
487 The header is output if either an `\-all' or a `\-header' switch
488 a99 3
489 Also, if \fIfolder\fR
490 is invoked by a name ending with \*(lqs\*(rq (e.g., \fIfolders\fR\0),
491 `\-all' is assumed.
492 a102 6
493 If a `+folder' and/or `msg' is given along with the `\-all' switch,
494 \fIfolder\fR will,
495 in addition to setting the current folder and/or message,
496 list the top\-level folders for the current folder (with `\-norecurse')
497 or list all folders under the current folder recursively (with `\-recurse').
498
499 d108 8
500 a115 2
501 The `\-pack' switch will compress the message names in a folder, removing
502 holes in message numbering.
503 d117 2
504 a118 2
505 The `\-recurse' switch will list each folder recursively.
506 Use of this option effectively defeats the speed enhancement of the `\-fast'
507 d123 5
508 a127 5
509 If the specified (or default) folder doesn't exist,
510 the user will be queried as to whether the folder should be created.
511 When standard input is not a tty, the folder is
512 created without any query.
513 (This is the easy way to create an empty folder for use later.)
514 d129 1
515 d144 1
516 a144 1
517 other.
518 d149 2
519 a150 1
520 After a successful `\-push' or `\-pop', the `\-list' action is taken.
521 d152 1
522 d182 2
523 d185 2
524 @
525
526
527 1.5
528 log
529 @add ID
530 @
531 text
532 @d2 1
533 a2 1
534 .\" @@(#)$Id:$
535 d109 3
536 a111 1
537 the user will be queried if the folder should be created.
538 @
539
540
541 1.4
542 log
543 @put things back, do .NA stuff another way
544 @
545 text
546 @d2 1
547 @
548
549
550 1.3
551 log
552 @typo
553 @
554 text
555 @d2 2
556 a3 2
557 .TH FOLDER 1 @@(MHCENTERFOOT) @@(MHLEFTFOOT)
558 .SH .NA
559 d5 1
560 a5 1
561 .SH .SY
562 @
563
564
565 1.2
566 log
567 @fixup for makewhatis
568 @
569 text
570 @d2 1
571 a2 1
572 .TH FOLDER 1 [mh.6] MH
573 @
574
575
576 1.1
577 log
578 @Initial revision
579 @
580 text
581 @d2 2
582 a3 2
583 .SC FOLDER 1
584 .NA
585 d5 1
586 a5 1
587 .SY
588 @