ANSI C; sprintf now returns an int.
[unix-history] / usr / src / libexec / bugfiler / bugfiler.8
CommitLineData
55b91bc1
KM
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
ee470de9 5.\" @(#)bugfiler.8 6.6 (Berkeley) %G%
55b91bc1 6.\"
19438d19 7.TH BUGFILER 8 ""
55b91bc1
KM
8.UC 5
9.SH NAME
10bugfiler \- file bug reports in folders automatically
11.SH SYNOPSIS
12.B bugfiler
ac34c775 13[ -ar ] [-v version]
55b91bc1 14.SH DESCRIPTION
7abe8478
KB
15\fIBugfiler\fP is a program to automatically intercept, acknowledge,
16redistribute and store bug reports. \fIBugfiler\fP is normally invoked
17by the mail delivery program with a line similar to the following in
18/usr/lib/aliases.
55b91bc1
KM
19.PP
20.DT
ac34c775 21 bugs: "|bugfiler"
7abe8478
KB
22.br
23.PP
ac34c775
KB
24It should be noted that the login ``bugs'' must exist for the bugfiler
25to run. Unless otherwise noted all paths used by \fIbugfiler\fP are
26relative to the home directory of this login. \fIBugfiler\fP also
27expects all of its files and directories to be owned by ``bugs''.
7abe8478
KB
28.PP
29A mail acknowledgement is automatically sent to the bug report filer
ac34c775
KB
30unless the \fB-a\fP flag is supplied. The file ~bugs/bug:ack is appended
31to this acknowledgement.
7abe8478
KB
32.PP
33For the bug report to be correctly filed, it must contain a line
34in the following format:
35.PP
36.DT
ac34c775 37 Index: \fIfolder\fP \fIversion\fP
7abe8478
KB
38.br
39.PP
ac34c775 40The directories ~bugs/\fIversion\fP and ~bugs/\fIversion\fP/\fIfolder\fP
7abe8478 41must exist before \fIbugfiler\fP attempts to store the bug report. Bug
ac34c775
KB
42reports will be stored in files named by the concatenation of \fIversion,
43folder,\fP and sequential numbers, i.e. if \fIversion\fP is ``4.3BSD'' and
44\fIfolder\fP is ``ucb'' the first bug report will be placed in
45~bugs/4.3BSD/ucb/1. If \fIfolder\fP contains more than one component only
46the first one will be used, e.g. if \fIfolder\fP is ``bin/from.c'' or
47``bin/adb/con.c'' it will be treated as if it were simply ``bin''. The
48\fI-v\fP flag is provided as a means to override the \fIversion\fP
49provided within the bug report itself.
7abe8478
KB
50.PP
51If the \fB-r\fP flag is not supplied, redistribution of the bug reports
ac34c775
KB
52is done as specified in the file ~bugs/\fIversion\fP/bug:redist. This file
53is in the format of the
7abe8478
KB
54.IR aliases (5)
55file, including comments and entries requiring multiple lines, with
ac34c775
KB
56the single exception that the \fIfolder\fP component of the ``Index:''
57line replaces the name to alias. For example, the \fIbug:redist\fP file
55b91bc1
KM
58.PP
59.DT
7abe8478 60 # ucb folder redistribution list
55b91bc1 61.br
7abe8478 62 ucb: karels, kjd@coke.berkeley.edu
55b91bc1 63.br
7abe8478 64 ra@beno.css.gov
55b91bc1 65.br
55b91bc1 66.PP
ac34c775
KB
67will send copies of all bug reports with ``ucb'' as the \fIfolder\fP
68to karels, kjd, and ra.
55b91bc1 69.PP
ac34c775
KB
70Reports that cannot be filed, due to an invalid ``Index:'' line or
71some other error, are placed in the directory ~bugs/errors. The
72\fIbugfiler\fP maintainer should correct these bug reports and then
73run \fIbugfiler\fP, with the corrected report as its standard input,
74as bug reports with errors are neither acknowledged or redistributed.
75All reports that \fIbugfiler\fP handles are logged in ~bugs/log.
7abe8478 76.PP
ac34c775
KB
77Valid bugs are also logged in the file ~bugs/\fIversion\fP/summary.
78This file has an entry for each bug report for \fIversion\fP in the
79format:
55b91bc1
KM
80.PP
81.DT
80c72c0b 82 Filename Date
7abe8478
KB
83.br
84 Subject:
85.br
86 Index:
87.br
88 Owner: Bugs Bunny
89.br
90 Status: Received
91.br
92.PP
ac34c775
KB
93\fIFilename\fP is the concatenation of \fIversion, folder,\fP and a number
94as described above. \fIDate\fP is the date as reported by the system
95clock, using ctime(3). The \fISubject:\fP and \fIIndex:\fP lines are
96copies of the ``Subject:'' and ``Index:'' lines contained in the bug
97report. The \fIOwner\fP and \fIStatus\fP fields are intended to provide a
98rudimentary method of tracking the status of bug reports.
99.PP
100The file ~bugs/bug:lock is the focus of all locking for \fIbugfiler.\fP
140d2fd2
KB
101If you wish to manipulate any of the log or error files, rename or remove
102it and \fIbugfiler\fP will treat all bug reports that it receives as if
103they were incorrectly formatted, i.e. it will place them in the directory
104~bugs/errors, for later recovery by the \fIbugfiler\fP maintainer.
105Obviously, this file must be created when you first install \fIbugfiler\fP.
ac34c775
KB
106.PP
107All errors that occur before ~bugs/log is found are logged into the system
108log file, using
7abe8478 109.IR syslog (8).
55b91bc1 110.SH FILES
55b91bc1 111.br
ac34c775
KB
112.TP 25
113~bugs/bug:ack
114the acknowledgement message
115.TP 25
116~bugs/bug:redist
117the redistribution list
118.TP 25
119~bugs/bug:lock
120the locking file
121.TP 25
122~bugs/errors/BUG_??????
123bug reports with format errors
124.TP 25
125~bugs/log
126the log file
127.TP 25
128~bugs/folder/summary
129the summary files
130.TP 25
131/usr/lib/sendmail
132the mail delivery program
133.TP 25
134/usr/lib/bugformat
135a sample bug report format
55b91bc1 136.SH "SEE ALSO"
7abe8478 137sendbug(1), aliases(5), syslog(8)
55b91bc1 138.SH BUGS
7abe8478
KB
139Since mail can be forwarded in a number of different ways, \fIbugfiler\fP
140does not recognize forwarded mail and will acknowledge to the forwarder
141instead of the original sender unless there is a `Reply-To' field in the
142header.
55b91bc1 143.PP
7abe8478
KB
144This version of the bugfiler is not compatible with the version
145released with 4.3BSD in that it doesn't complain to the sender about
146incorrectly formatted bug reports.
147Frankly, we got tired of the profanity, not to mention the extended
148conversations
149.I bugfiler
150was holding with
151.IR vacation (1).