1.\" Copyright (c) 1983, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" %sccs.include.redist.man% 5.\" 6.\" @(#)bugfiler.8 8.1 (Berkeley) 06/04/93 7.\" 8.Dd 9.Dt BUGFILER 8 10.Os BSD 4.2 11.Sh NAME 12.Nm bugfiler 13.Nd file bug reports in folders automatically 14.Sh SYNOPSIS 15.Nm bugfiler 16.Op Fl ar 17.Op Fl v Ar version 18.Sh DESCRIPTION 19.Nm Bugfiler 20is a program to automatically intercept, acknowledge, 21redistribute and store bug reports. 22.Nm Bugfiler 23is normally invoked 24by the mail delivery program with a line similar to the following in 25.Pa /etc/aliases . 26.Bd -literal -offset indent 27bugs: "|bugfiler" 28.Ed 29.Pp 30It should be noted that the login 31.Dq bugs 32must exist for the bugfiler 33to run. Unless otherwise noted all paths used by 34.Nm bugfiler 35are 36relative to the home directory of this login. 37.Nm Bugfiler 38also 39expects all of its files and directories to be owned by 40.Dq bugs . 41.Pp 42Available options. 43.Bl -tag -width Ds 44.It Fl a 45Do not send automatic mail acknowledgement to the bug report filer. 46(The default is to send the acknowledgement with the file 47.Pa ~bugs/version/bug:ack 48appended). 49.It Fl r 50Do not redistribute. 51.It Fl v Ar version 52Override the 53.Ar version 54provided within the bug report itself. 55.El 56.Pp 57For the bug report to be correctly filed, it must contain a line 58in the following format: 59.Pp 60.Bd -filled -offset indent -compact 61.Bl -column Index folder 62.It Index: Ta Em folder Ta Ar version 63.El 64.Ed 65.Pp 66The directories 67.Pa ~bugs/ Ns Ar version 68and 69.Pa ~bugs/ Ns Ar version/ Ns Em folder 70must exist before 71.Nm bugfiler 72attempts to store the bug report. Bug 73reports will be stored in files named by the concatenation of 74.Ar version , 75.Em folder , 76and sequential numbers, i.e. if 77.Ar version 78is 79.Dq 4.3 Tn BSD 80and 81.Em folder 82is 83.Dq ucb 84the first bug report will be placed in 85.Pa ~bugs/4.3BSD/ucb/1 . 86If 87.Em folder 88contains more than one component only 89the first one will be used, e.g. if 90.Em folder 91is 92.Dq bin/from.c 93or 94.Dq bin/adb/con.c 95it will be treated as if it were simply 96.Dq bin . 97.Pp 98.Pp 99If the 100.Fl r 101flag is not supplied, redistribution of the bug reports 102is done as specified in the file 103.Pa ~bugs/version/bug:redist . 104This file 105is in the format of the 106.Xr aliases 5 107file, including comments and 108entries requiring multiple lines, with the single exception that the 109.Em folder 110component of the 111.Dq Index: 112line replaces the name to alias. 113The special folder 114.Dq all: 115receives a redistribution of all bug reports 116sent to this 117.Ar version . 118For example, the 119.Pa bug:redist 120file 121.Pp 122.Bd -literal -offset indent -compact 123# bigbug gets a copy of everything 124all: bigbug 125# ucb folder redistribution list 126ucb: karels, kjd@coke.berkeley.edu 127 ra@beno.css.gov 128.Ed 129.Pp 130will send copies of all bug reports with 131.Dq ucb 132as the 133.Em folder 134to bigbug, karels, kjd, and ra. 135.Pp 136Reports that cannot be filed, due to an invalid 137.Dq Index: 138line or 139some other error, are placed in the directory 140.Pa ~bugs/errors . 141The 142.Nm bugfiler 143maintainer should correct these bug reports and then 144run 145.Nm bugfiler , 146with the corrected report as its standard input, 147as bug reports with errors are neither acknowledged or redistributed. 148All reports that 149.Nm bugfiler 150handles are logged in 151.Pa ~bugs/log. 152.Pp 153Valid bugs are also logged in the file 154.Pa ~bugs/version/summary. 155This file has an entry for each bug report for 156.Ar version 157in the 158format: 159.Pp 160.Bd -literal -offset indent -compact 161Filename Date 162 Subject: 163 Index: 164 Owner: Bugs Bunny 165 Status: Received 166.Ed 167.Pp 168.Li Filename 169is the concatenation of 170.Ar version , 171.Em folder , 172and a number 173as described above. 174.Xr Date 175is the date as reported by the system 176clock, using 177.Xr ctime 3 . 178.Li The Subject: 179and 180.Li Index: 181lines are 182The 183.Dq Subject: 184and 185.Dq Index: 186lines are 187copies of the 188.Dq Subject: 189and 190.Dq index: 191lines contained in the bug 192report. The 193.Li Owner 194and 195.Li Status 196fields are intended to provide a 197rudimentary method of tracking the status of bug reports. 198.Pp 199The file 200.Pa ~bugs/bug:lock 201is the focus of all locking for 202.Nm bugfiler . 203If you wish to manipulate any of the log or error files, rename or remove 204it and 205.Nm bugfiler 206will treat all bug reports that it receives as if 207they were incorrectly formatted, i.e. it will place them in the directory 208.Pa ~bugs/errors , 209for later recovery by the 210.Nm bugfiler 211maintainer. 212Obviously, this file must be created when you first install 213.Nm bugfiler . 214.Pp 215All errors that occur before 216.Pa ~bugs/log 217is found are logged into the system 218log file, using 219.Xr syslog 8 . 220.Sh FILES 221.Bl -tag -width /usr/share/misc/bugformatxx -compact 222.It Pa ~bugs/bug:ack 223the acknowledgement message 224.It Pa ~bugs/bug:redist 225the redistribution list 226.It Pa ~bugs/bug:lock 227the locking file 228.It Pa ~bugs/errors/BUG_?????? 229bug reports with format errors 230.It Pa ~bugs/log 231the log file 232.It Pa ~bugs/folder/summary 233the summary files 234.It Pa /usr/sbin/sendmail 235the mail delivery program 236.It Pa /usr/share/misc/bugformat 237a sample bug report format 238.El 239.Sh SEE ALSO 240.Xr sendbug 1 , 241.Xr aliases 5 , 242.Xr syslog 8 243.Sh BUGS 244Since mail can be forwarded in a number of different ways, 245.Nm bugfiler 246does not recognize forwarded mail and will acknowledge to the forwarder 247instead of the original sender unless there is a 248.Dq Reply-To 249field in the 250header. 251.Pp 252This version of 253.Nm bugfiler 254is not compatible with the version 255released with 256.Bx 4.3 257in that it doesn't complain to the sender about 258incorrectly formatted bug reports. 259Frankly, we got tired of the profanity, not to mention the extended 260conversations 261.Nm bugfiler 262was holding with 263.Xr vacation 1 . 264.Sh HISTORY 265The 266.Nm 267command appeared in 268.Bx 4.2 . 269