xref: /csrg-svn/libexec/bugfiler/bugfiler.8 (revision 65103)
161420Sbostic.\" Copyright (c) 1983, 1991, 1993
261420Sbostic.\"	The Regents of the University of California.  All rights reserved.
318952Smckusick.\"
443763Strent.\" %sccs.include.redist.man%
518952Smckusick.\"
6*65103Smckusick.\"     @(#)bugfiler.8	8.2 (Berkeley) 12/11/93
736160Sbostic.\"
847462Scael.Dd
947462Scael.Dt BUGFILER 8
1047462Scael.Os BSD 4.2
1147462Scael.Sh NAME
1247462Scael.Nm bugfiler
1347462Scael.Nd file bug reports in folders automatically
1447462Scael.Sh SYNOPSIS
1547462Scael.Nm bugfiler
1647462Scael.Op Fl ar
1747462Scael.Op Fl v Ar version
1847462Scael.Sh DESCRIPTION
1947462Scael.Nm Bugfiler
2047462Scaelis a program to automatically intercept, acknowledge,
2147462Scaelredistribute and store bug reports.
2247462Scael.Nm Bugfiler
2347462Scaelis normally invoked
2430240Sbosticby the mail delivery program with a line similar to the following in
2547462Scael.Pa /etc/aliases .
2647462Scael.Bd -literal -offset indent
2747462Scaelbugs:	"|bugfiler"
2847462Scael.Ed
2947462Scael.Pp
3047462ScaelIt should be noted that the login
3147462Scael.Dq bugs
3247462Scaelmust exist for the bugfiler
3347462Scaelto run.  Unless otherwise noted all paths used by
3447462Scael.Nm bugfiler
3547462Scaelare
3647462Scaelrelative to the home directory of this login.
3747462Scael.Nm Bugfiler
3847462Scaelalso
3947462Scaelexpects all of its files and directories to be owned by
4047462Scael.Dq bugs .
4147462Scael.Pp
4247462ScaelAvailable options.
4347462Scael.Bl -tag -width Ds
4447462Scael.It Fl a
4547462ScaelDo not send automatic mail acknowledgement to the bug report filer.
4647462Scael(The default is to send the acknowledgement with the file
4747462Scael.Pa ~bugs/version/bug:ack
4847462Scaelappended).
4947462Scael.It Fl r
5047462ScaelDo not redistribute.
5147462Scael.It Fl v Ar version
5247462ScaelOverride the
5347462Scael.Ar version
5447462Scaelprovided within the bug report itself.
5547462Scael.El
5647462Scael.Pp
5730240SbosticFor the bug report to be correctly filed, it must contain a line
5830240Sbosticin the following format:
5947462Scael.Pp
6047462Scael.Bd -filled -offset indent -compact
6147462Scael.Bl -column Index folder
6247462Scael.It Index: Ta Em folder Ta Ar version
6347462Scael.El
6447462Scael.Ed
6547462Scael.Pp
6647462ScaelThe directories
6747462Scael.Pa ~bugs/ Ns Ar version
6847462Scaeland
6947462Scael.Pa ~bugs/ Ns Ar version/ Ns Em folder
7047462Scaelmust exist before
7147462Scael.Nm bugfiler
7247462Scaelattempts to store the bug report.  Bug
7347462Scaelreports will be stored in files named by the concatenation of
7447462Scael.Ar version ,
7547462Scael.Em folder ,
7647462Scaeland sequential numbers, i.e. if
7747462Scael.Ar version
7847462Scaelis
7947462Scael.Dq 4.3 Tn BSD
8047462Scaeland
8147462Scael.Em folder
8247462Scaelis
8347462Scael.Dq ucb
8447462Scaelthe first bug report will be placed in
8547462Scael.Pa ~bugs/4.3BSD/ucb/1 .
8647462ScaelIf
8747462Scael.Em folder
8847462Scaelcontains more than one component only
8947462Scaelthe first one will be used, e.g. if
9047462Scael.Em folder
9147462Scaelis
9247462Scael.Dq bin/from.c
9347462Scaelor
9447462Scael.Dq bin/adb/con.c
9547462Scaelit will be treated as if it were simply
9647462Scael.Dq bin .
9747462Scael.Pp
9847462Scael.Pp
9947462ScaelIf the
10047462Scael.Fl r
10147462Scaelflag is not supplied, redistribution of the bug reports
10247462Scaelis done as specified in the file
10347462Scael.Pa ~bugs/version/bug:redist .
10447462ScaelThis file
10547462Scaelis in the format of the
10647462Scael.Xr aliases 5
10747462Scaelfile, including comments and
10832639Sbosticentries requiring multiple lines, with the single exception that the
10947462Scael.Em folder
11047462Scaelcomponent of the
11147462Scael.Dq Index:
11247462Scaelline replaces the name to alias.
11347462ScaelThe special folder
11447462Scael.Dq all:
11547462Scaelreceives a redistribution of all bug reports
11647462Scaelsent to this
11747462Scael.Ar version .
11847462ScaelFor example, the
11947462Scael.Pa bug:redist
12047462Scaelfile
12147462Scael.Pp
12247462Scael.Bd -literal -offset indent -compact
12347462Scael#	bigbug gets a copy of everything
12447462Scaelall:	bigbug
12547462Scael#	ucb folder redistribution list
12647462Scaelucb:	karels, kjd@coke.berkeley.edu
12747462Scael	ra@beno.css.gov
12847462Scael.Ed
12947462Scael.Pp
13047462Scaelwill send copies of all bug reports with
13147462Scael.Dq ucb
13247462Scaelas the
13347462Scael.Em folder
13432655Sbosticto bigbug, karels, kjd, and ra.
13547462Scael.Pp
13647462ScaelReports that cannot be filed, due to an invalid
13747462Scael.Dq Index:
13847462Scaelline or
13947462Scaelsome other error, are placed in the directory
14047462Scael.Pa ~bugs/errors .
14147462ScaelThe
14247462Scael.Nm bugfiler
14347462Scaelmaintainer should correct these bug reports and then
14447462Scaelrun
14547462Scael.Nm bugfiler ,
14647462Scaelwith the corrected report as its standard input,
14730896Sbosticas bug reports with errors are neither acknowledged or redistributed.
14847462ScaelAll reports that
14947462Scael.Nm bugfiler
15047462Scaelhandles are logged in
15147462Scael.Pa ~bugs/log.
15247462Scael.Pp
15347462ScaelValid bugs are also logged in the file
15447462Scael.Pa ~bugs/version/summary.
15547462ScaelThis file has an entry for each bug report for
15647462Scael.Ar version
15747462Scaelin the
15830896Sbosticformat:
15947462Scael.Pp
16047462Scael.Bd -literal -offset indent -compact
16147462ScaelFilename	Date
16247462Scael     Subject:
16347462Scael     Index:
16447462Scael     Owner:	Bugs Bunny
16547462Scael     Status:	Received
16647462Scael.Ed
16747462Scael.Pp
16847462Scael.Li Filename
16947462Scaelis the concatenation of
17047462Scael.Ar version ,
17147462Scael.Em folder ,
17247462Scaeland a number
17347462Scaelas described above.
17447462Scael.Xr Date
17547462Scaelis the date as reported by the system
17647462Scaelclock, using
17747462Scael.Xr ctime 3 .
178*65103SmckusickThe
179*65103Smckusick.Li Subject:
18047462Scaeland
18147462Scael.Li Index:
18247462Scaellines are
18347462Scaelcopies of the
18447462Scael.Dq Subject:
18547462Scaeland
18647462Scael.Dq index:
18747462Scaellines contained in the bug
18847462Scaelreport.  The
18947462Scael.Li Owner
19047462Scaeland
19147462Scael.Li Status
19247462Scaelfields are intended to provide a
19330896Sbosticrudimentary method of tracking the status of bug reports.
19447462Scael.Pp
19547462ScaelThe file
19647462Scael.Pa ~bugs/bug:lock
19747462Scaelis the focus of all locking for
19847462Scael.Nm bugfiler .
19931912SbosticIf you wish to manipulate any of the log or error files, rename or remove
20047462Scaelit and
20147462Scael.Nm bugfiler
20247462Scaelwill treat all bug reports that it receives as if
20331912Sbosticthey were incorrectly formatted, i.e. it will place them in the directory
20447462Scael.Pa ~bugs/errors ,
20547462Scaelfor later recovery by the
20647462Scael.Nm bugfiler
20747462Scaelmaintainer.
20847462ScaelObviously, this file must be created when you first install
20947462Scael.Nm bugfiler .
21047462Scael.Pp
21147462ScaelAll errors that occur before
21247462Scael.Pa ~bugs/log
21347462Scaelis found are logged into the system
21430896Sbosticlog file, using
21547462Scael.Xr syslog 8 .
21647462Scael.Sh FILES
21747462Scael.Bl -tag -width /usr/share/misc/bugformatxx -compact
21847462Scael.It Pa ~bugs/bug:ack
21930896Sbosticthe acknowledgement message
22047462Scael.It Pa ~bugs/bug:redist
22130896Sbosticthe redistribution list
22247462Scael.It Pa ~bugs/bug:lock
22330896Sbosticthe locking file
22447462Scael.It Pa ~bugs/errors/BUG_??????
22530896Sbosticbug reports with format errors
22647462Scael.It Pa ~bugs/log
22730896Sbosticthe log file
22847462Scael.It Pa ~bugs/folder/summary
22930896Sbosticthe summary files
23047462Scael.It Pa /usr/sbin/sendmail
23130896Sbosticthe mail delivery program
23247462Scael.It Pa /usr/share/misc/bugformat
23330896Sbostica sample bug report format
23447462Scael.El
23547462Scael.Sh SEE ALSO
23647462Scael.Xr sendbug 1 ,
23747462Scael.Xr aliases 5 ,
23847462Scael.Xr syslog 8
23947462Scael.Sh BUGS
24047462ScaelSince mail can be forwarded in a number of different ways,
24147462Scael.Nm bugfiler
24230240Sbosticdoes not recognize forwarded mail and will acknowledge to the forwarder
24347462Scaelinstead of the original sender unless there is a
24447462Scael.Dq Reply-To
24547462Scaelfield in the
24630240Sbosticheader.
24747462Scael.Pp
24847462ScaelThis version of
24947462Scael.Nm bugfiler
25047462Scaelis not compatible with the version
25147462Scaelreleased with
25247462Scael.Bx 4.3
25347462Scaelin that it doesn't complain to the sender about
25430240Sbosticincorrectly formatted bug reports.
25530240SbosticFrankly, we got tired of the profanity, not to mention the extended
25630240Sbosticconversations
25747462Scael.Nm bugfiler
25830240Sbosticwas holding with
25947462Scael.Xr vacation 1 .
26047462Scael.Sh HISTORY
26147462ScaelThe
26247462Scael.Nm
26347462Scaelcommand appeared in
26447462Scael.Bx 4.2 .
265