This commit was generated by cvs2svn to track changes on a CVS vendor
[unix-history] / libexec / bugfiler / bugfiler.8
CommitLineData
15637ed4
RG
1.\" Copyright (c) 1983, 1991 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\" notice, this list of conditions and the following disclaimer in the
11.\" documentation and/or other materials provided with the distribution.
12.\" 3. All advertising materials mentioning features or use of this software
13.\" must display the following acknowledgement:
14.\" This product includes software developed by the University of
15.\" California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\" may be used to endorse or promote products derived from this software
18.\" without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)bugfiler.8 6.11 (Berkeley) 3/16/91
33.\"
34.Dd March 16, 1991
35.Dt BUGFILER 8
36.Os BSD 4.2
37.Sh NAME
38.Nm bugfiler
39.Nd file bug reports in folders automatically
40.Sh SYNOPSIS
41.Nm bugfiler
42.Op Fl ar
43.Op Fl v Ar version
44.Sh DESCRIPTION
45.Nm Bugfiler
46is a program to automatically intercept, acknowledge,
47redistribute and store bug reports.
48.Nm Bugfiler
49is normally invoked
50by the mail delivery program with a line similar to the following in
51.Pa /etc/aliases .
52.Bd -literal -offset indent
53bugs: "|bugfiler"
54.Ed
55.Pp
56It should be noted that the login
57.Dq bugs
58must exist for the bugfiler
59to run. Unless otherwise noted all paths used by
60.Nm bugfiler
61are
62relative to the home directory of this login.
63.Nm Bugfiler
64also
65expects all of its files and directories to be owned by
66.Dq bugs .
67.Pp
68Available options.
69.Bl -tag -width Ds
70.It Fl a
71Do not send automatic mail acknowledgement to the bug report filer.
72(The default is to send the acknowledgement with the file
73.Pa ~bugs/version/bug:ack
74appended).
75.It Fl r
76Do not redistribute.
77.It Fl v Ar version
78Override the
79.Ar version
80provided within the bug report itself.
81.El
82.Pp
83For the bug report to be correctly filed, it must contain a line
84in the following format:
85.Pp
86.Bd -filled -offset indent -compact
87.Bl -column Index folder
88.It Index: Ta Em folder Ta Ar version
89.El
90.Ed
91.Pp
92The directories
93.Pa ~bugs/ Ns Ar version
94and
95.Pa ~bugs/ Ns Ar version/ Ns Em folder
96must exist before
97.Nm bugfiler
98attempts to store the bug report. Bug
99reports will be stored in files named by the concatenation of
100.Ar version ,
101.Em folder ,
102and sequential numbers, i.e. if
103.Ar version
104is
105.Dq 4.3 Tn BSD
106and
107.Em folder
108is
109.Dq ucb
110the first bug report will be placed in
111.Pa ~bugs/4.3BSD/ucb/1 .
112If
113.Em folder
114contains more than one component only
115the first one will be used, e.g. if
116.Em folder
117is
118.Dq bin/from.c
119or
120.Dq bin/adb/con.c
121it will be treated as if it were simply
122.Dq bin .
123.Pp
124.Pp
125If the
126.Fl r
127flag is not supplied, redistribution of the bug reports
128is done as specified in the file
129.Pa ~bugs/version/bug:redist .
130This file
131is in the format of the
132.Xr aliases 5
133file, including comments and
134entries requiring multiple lines, with the single exception that the
135.Em folder
136component of the
137.Dq Index:
138line replaces the name to alias.
139The special folder
140.Dq all:
141receives a redistribution of all bug reports
142sent to this
143.Ar version .
144For example, the
145.Pa bug:redist
146file
147.Pp
148.Bd -literal -offset indent -compact
149# bigbug gets a copy of everything
150all: bigbug
151# ucb folder redistribution list
152ucb: karels, kjd@coke.berkeley.edu
153 ra@beno.css.gov
154.Ed
155.Pp
156will send copies of all bug reports with
157.Dq ucb
158as the
159.Em folder
160to bigbug, karels, kjd, and ra.
161.Pp
162Reports that cannot be filed, due to an invalid
163.Dq Index:
164line or
165some other error, are placed in the directory
166.Pa ~bugs/errors .
167The
168.Nm bugfiler
169maintainer should correct these bug reports and then
170run
171.Nm bugfiler ,
172with the corrected report as its standard input,
173as bug reports with errors are neither acknowledged or redistributed.
174All reports that
175.Nm bugfiler
176handles are logged in
177.Pa ~bugs/log.
178.Pp
179Valid bugs are also logged in the file
180.Pa ~bugs/version/summary.
181This file has an entry for each bug report for
182.Ar version
183in the
184format:
185.Pp
186.Bd -literal -offset indent -compact
187Filename Date
188 Subject:
189 Index:
190 Owner: Bugs Bunny
191 Status: Received
192.Ed
193.Pp
194.Li Filename
195is the concatenation of
196.Ar version ,
197.Em folder ,
198and a number
199as described above.
200.Xr Date
201is the date as reported by the system
202clock, using
203.Xr ctime 3 .
204.Li The Subject:
205and
206.Li Index:
207lines are
208The
209.Dq Subject:
210and
211.Dq Index:
212lines are
213copies of the
214.Dq Subject:
215and
216.Dq index:
217lines contained in the bug
218report. The
219.Li Owner
220and
221.Li Status
222fields are intended to provide a
223rudimentary method of tracking the status of bug reports.
224.Pp
225The file
226.Pa ~bugs/bug:lock
227is the focus of all locking for
228.Nm bugfiler .
229If you wish to manipulate any of the log or error files, rename or remove
230it and
231.Nm bugfiler
232will treat all bug reports that it receives as if
233they were incorrectly formatted, i.e. it will place them in the directory
234.Pa ~bugs/errors ,
235for later recovery by the
236.Nm bugfiler
237maintainer.
238Obviously, this file must be created when you first install
239.Nm bugfiler .
240.Pp
241All errors that occur before
242.Pa ~bugs/log
243is found are logged into the system
244log file, using
245.Xr syslog 8 .
246.Sh FILES
247.Bl -tag -width /usr/share/misc/bugformatxx -compact
248.It Pa ~bugs/bug:ack
249the acknowledgement message
250.It Pa ~bugs/bug:redist
251the redistribution list
252.It Pa ~bugs/bug:lock
253the locking file
254.It Pa ~bugs/errors/BUG_??????
255bug reports with format errors
256.It Pa ~bugs/log
257the log file
258.It Pa ~bugs/folder/summary
259the summary files
260.It Pa /usr/sbin/sendmail
261the mail delivery program
262.It Pa /usr/share/misc/bugformat
263a sample bug report format
264.El
265.Sh SEE ALSO
266.Xr sendbug 1 ,
267.Xr aliases 5 ,
268.Xr syslog 8
269.Sh BUGS
270Since mail can be forwarded in a number of different ways,
271.Nm bugfiler
272does not recognize forwarded mail and will acknowledge to the forwarder
273instead of the original sender unless there is a
274.Dq Reply-To
275field in the
276header.
277.Pp
278This version of
279.Nm bugfiler
280is not compatible with the version
281released with
282.Bx 4.3
283in that it doesn't complain to the sender about
284incorrectly formatted bug reports.
285Frankly, we got tired of the profanity, not to mention the extended
286conversations
287.Nm bugfiler
288was holding with
289.Xr vacation 1 .
290.Sh HISTORY
291The
292.Nm
293command appeared in
294.Bx 4.2 .