Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / conf / doc / RCS / bbl.rf,v
1 head     1.5;
2 branch   ;
3 access   ;
4 symbols  ;
5 locks    ; strict;
6 comment  @@;
7
8
9 1.5
10 date     90.04.05.15.11.17;  author sources;  state Exp;
11 branches ;
12 next     1.4;
13
14 1.4
15 date     90.03.22.11.30.53;  author sources;  state Exp;
16 branches ;
17 next     1.3;
18
19 1.3
20 date     90.03.20.19.41.29;  author sources;  state Exp;
21 branches ;
22 next     1.2;
23
24 1.2
25 date     90.03.20.17.35.47;  author sources;  state Exp;
26 branches ;
27 next     1.1;
28
29 1.1
30 date     90.03.20.17.20.30;  author sources;  state Exp;
31 branches ;
32 next     ;
33
34
35 desc
36 @@
37
38
39 1.5
40 log
41 @add ID
42 @
43 text
44 @.\"    @@(MHWARNING)
45 .\" @@(#)$Id:$
46 .SC BBL 1
47 .NA
48 bbl \- manage a BBoard
49 .SY
50 bbl
51 \%[+folder] 
52 \%[\-shell\ program]
53 \%[\-verbose] \%[\-noverbose]
54 bboard
55 \%[\-help]
56 .DE
57 \fIbbl\fR allows a \fIBBleader\fR to manage a BBoard.
58 The process is relatively simple:  a \fIBBleader\fR
59 invokes the \fIbbl\fR program to set\-up an environment in which the messages
60 contained in the BBoard
61 may be accessed as if they were messages in an \fIMH\fR folder.
62
63 To do this, \fIbbl\fR, \fIincs\fR the \fIBBoard\fR
64 to the folder \*(lq+bbl\*(rq, and \fIincs\fR the archives for the \fIBBoard\fR
65 to the folder \*(lq+bbl/arc\*(rq.  The \fIBBleader\fR
66 then gets a new shell in which \fIMH\fR
67 commands (among others) may be executed.  When the \fIBBleader\fR
68 is done, CTRL\-D is typed, which terminates the shell.  \fIbbl\fR then
69 asks the \fIBBleader\fR
70 as to how the BBoard
71 should be reconstructed.
72 Usually, this results in zeroing the existing \fIBBoard\fR
73 file, and  \fIpack\fRing the \*(lq+bbl\*(rq folder into the \fIBBoard\fR
74 file.  Similar actions are taken for the archive.
75
76 The `\-shell' switch specifies what process that \fIbbl\fR should invoke
77 as your command interpreter.  This need not be a rooted filename.
78 If this switch is not specified,
79 \fIbbl\fR looks at the envariable \fB$SHELL\fR for a value.
80 If this envariable is not set, then \fIbbl\fR uses your login shell.
81
82 The `\-verbose' switch directs \fIbbl\fR to type the shell commands that it
83 executes to get the job done (e.g., \fIchmod\fR\0s, \fIinc\fR\0s, etc.)
84
85 As \fIbbl\fR processing is most likely not intuitively obvious to most
86 prospective BBoard\-leaders, a short diatribe is in order.  As pointed out in
87 \fIBBleader\fR(1),
88 a BBoard\-leader (of the fictitious BBoard \*(lqhacks\*(rq)
89 has three primary maintenance functions: 
90 .in +.5i
91
92 .ti -.5i
93 \fBRead the BBoard\fR
94 .br
95 You don't need \fIbbl\fR
96 to do this, use \fIbbc\fR instead.
97
98 .ti -.5i
99 \fBRemove inappropriate material\fR
100 .br
101 Do this by running \fIbbl\fR.
102 An example of this might be:
103 .sp
104 .nf
105 \01 % bbl hacks
106 \02 [ Working folder is +bbl, Archive folder is +bbl/arc ]
107 \03 [ Type CTRL\-D to finish ]
108 \04 % scan
109 .ta \w'\05  'u +\w'20 'u +\w'10/14 'u +\w'1345-PDT 'u +\w'Reasonable Person 'u
110 \05     20      10/14   1345-PDT        Silly User      Nonsensical message
111 \06     21      10/14   1707-PDT        Silly User      Another one
112 \07     22      10/14   2144-PDT        Reasonable Person       Legit message
113 .re
114 \09 % rmm 20 21
115 \10 % \^D
116 \11 Incorporate changes? y
117 \12 Remove +bbl? y
118 \13 Update archives? n
119 \14 Remove +bbl/arc? y
120 \15 [+inbox now current]
121 \16 %
122 .fi
123 .sp
124 In item 1, the BBoard\-Leader invokes \fIbbl\fR
125 on the BBoard called \*(lqhacks\*(rq.  The \fIbbl\fR
126 program responds by typing items 2 and 3 which tell the user what \fIMH\fR
127 folders are being used and that a sub\-shell is now in use (respectively).
128 The user does a scan of the +bbl folder
129 (\fIbbl\fR sets the current\-folder to be the one with the BBoard in it.)
130 and finds two messages that should be removed (numbers 20 and 21).
131 The user then removes these using the \fIrmm\fR
132 program (item 9) and then types a CTRL\-D to return to
133 \fIbbl\fR (item 10).
134 At this point,
135 \fIbbl\fR
136 asks how the BBoard should be reconstructed.  Item 11 asks if the contents of
137 the +bbl folder should OVERWRITE the contents of the BBoard.  The user 
138 responds `yes',
139 that it should (hence the two \fIrmm\fR'd messages disappear).
140 Next on item 12,
141 the user is asked if the +bbl folder should be killed, since the BBoards
142 have been successfully updated, the user answers `yes'.
143 On item 13, the user is
144 asked if the archives should be updated.  Since the user made no changes, the
145 answer `no' is made.  (The user could have answered `yes' with no disastrous 
146 effects, but knew that nothing had been updated).  Finally, on item 14, the
147 user indicates that the +bbl/arc subfolder should be killed, by answering
148 `yes'.
149
150 .ti -.5i
151 \fBArchive non\-recent material\fR
152 .br
153 Do this by running \fIbbl\fR.
154 An example of this might be:
155 .sp
156 .nf
157 \01 % bbl hacks
158 \02 [ Working folder is +bbl, Archive folder is +bbl/arc ]
159 \03 [ Type CTRL\-D to finish ]
160 \04 % scan
161 .ta \w'\05  'u +\w'20 'u +\w'10/14 'u +\w'1345-PDT 'u +\w'GFISHER@@UCI-20B 'u
162 \05     11      10/12   1905-PST        Marshall Rose   New MMail/BBck
163 \06     12      10/12   1916-PST        Stephen Willson PATH, nfinger, and ls
164 \07     13      10/12   2329-PDT        G@@UCI-20A      833-5122 hours
165 \08     14      10/13   1045-PDT        MELLON@@UCI-20B Reporting line
166 \09     15      10/13   1112-PST        Tim Shimeall    Re: 833-5122 hours
167 \10     16      10/13   1045-PDT        MELLON@@UCI-20B Reporting line
168 \11     17      10/13   2042-PST        Dana Roode      Ucifinger
169 \12     18      10/13   2045-PST        Dana Roode      Files in /usr/restores
170 \13     19      10/14   1028-PDT        WILLSON@@UCI-20B        Re: term no pause
171 \14     20      10/14   1345-PDT        Martin Katz     Re: term no pause
172 \15     21      10/14   1707-PDT        SCRIBE@@UCI-20A Scribe Use
173 \16     22      10/14   2144-PDT        GFISHER@@UCI-20B        New Twemacs
174 \17     23      10/15   1227-PDT        Rob Rittenhouse Re: New Twemacs
175 .re
176 \18 % file +bbl/arc \-src +bbl 11\-12 17\-20 21
177 \19 % ^D
178 \20 Incorporate changes? y
179 \21 Remove +bbl? y
180 \22 Update archives? y
181 \23 Remove +bbl/arc? y
182 \24 [+inbox now current]
183 \25 %
184 .fi
185 .sp
186 The important command given is in item 18, in which the user \fIfiles\fR
187 some messages from +bbl into +bbl/arc.  When CTRL\-D is typed, the user
188 directs \fIbbl\fR
189 to update both the BBoard and its archives, which does the proper action.
190 As an alternate to this scenario,
191 some creative \fIBBleaders\fR might use the \fIpick\fR command to do all of
192 the work:
193
194 .in +.5i
195 .nf
196 pick \-sequence select \-before \-12 \-datefield BB-Posted \-zero
197 pick \-sequence select \-before \-20 \-nozero
198 scan select
199 refile select +bbl/arc
200 .fi
201 .in -.5i
202
203 In order to facilitate the use of automation shell scripts,
204 if the standard input for \fIbbl\fR is \fInot\fR a tty,
205 then \fIbbl\fR will not ask any questions and will proceed as if
206 the user's answer was \*(lqyes\*(rq for all questions.
207 Hence, \fIbbl\fR may be run under \fIcron\fR\0(8) to provide for
208 automatic archiving.
209 .in -.5i
210 .Fi
211 ^$HOME/\&.mh\(ruprofile~^The user profile
212 .Pr
213 ^Path:~^To determine the user's MH directory
214 .Ps
215 ^incproc:~^Program to incorporate a mail drop into a folder
216 .Ps
217 ^packproc:~^Program to pack a folder into a msgbox
218 .Ps
219 ^rmfproc:~^Program to remove a folder
220 .Sa
221 bbc(1), bbleader(1), bboards(1)
222 .De
223 `+folder' defaults to \*(lqbbl\*(rq
224 .Ds
225 `\-nofile'
226 .Ds
227 `\-shell' defaults to \fB$SHELL\fR or your login shell
228 .Co
229 None
230 .Hi
231 In the early days of the UCI BBoards facility,
232 \fIBBleaders\fR actually used to run this program by hand.
233 Now, this \fIbbl\fR is often run automatically by the system to perform
234 automatic archiving.
235 .Bu
236 Note that \fIbbl\fR executes a lot of \fIMH\fR 
237 commands, and as such, each of these commands can and will read
238 your \fI\&.mh\(ruprofile\fR for defaults.
239 Please read the \fBBUGS\fR section of \fImh\-profile\fR\0(5)
240 for some hints to help you avoid many silly problems.
241
242 Also, \fIbbl\fR is unforgiving in doing exactly what it is told,
243 so take special care in answering \fIbbl\fR's questions.
244 .En
245 @
246
247
248 1.4
249 log
250 @put things back, do .NA stuff another way
251 @
252 text
253 @d2 1
254 @
255
256
257 1.3
258 log
259 @typo
260 @
261 text
262 @d2 2
263 a3 2
264 .TH BBL 1 @@(MHCENTERFOOT) @@(MHLEFTFOOT)
265 .SH .NA
266 d5 1
267 a5 1
268 .SH .SY
269 @
270
271
272 1.2
273 log
274 @fixup for makewhatis
275 @
276 text
277 @d2 1
278 a2 1
279 .TH BBL 1 [mh.6] MH
280 @
281
282
283 1.1
284 log
285 @Initial revision
286 @
287 text
288 @d2 2
289 a3 2
290 .SC BBL 1
291 .NA
292 d5 1
293 a5 1
294 .SY
295 @