Commit | Line | Data |
---|---|---|
70c98dc6 KB |
1 | /* |
2 | * Copyright (c) 1986 Regents of the University of California. | |
3 | * All rights reserved. The Berkeley software License Agreement | |
4 | * specifies the terms and conditions for redistribution. | |
5 | * | |
6 | * @(#)bug.h 1.1 (Berkeley) 11/25/86 | |
7 | */ | |
8 | ||
9 | #define BUGS_HOME "owner-bugs@ucbvax.BERKELEY.EDU" | |
10 | #define BUGS_ID "bugs" | |
11 | #define MAIL_CMD "/usr/lib/sendmail -i -t -F \"Bugs Bunny\" -f owner-bugs@ucbvax.BERKELEY.EDU" | |
12 | ||
13 | /* | |
14 | * the METOO definition has the bugfiler exit with an error (-1) status | |
15 | * if there's a problem. Sendmail then mails off a copy of the problem | |
16 | * mail to "owner-bugs". This is great if you would have otherwise lost | |
17 | * the bug report. It's not so great if you get a whole bunch of mail | |
18 | * that you really don't want. | |
19 | */ | |
20 | #define METOO | |
21 | ||
70c98dc6 | 22 | /* files */ |
3dc98623 KB |
23 | #define ACK_FILE "bug:ack" /* acknowledge file */ |
24 | #define DIST_FILE "bug:redist" /* redistribution file */ | |
70c98dc6 KB |
25 | #define ERROR_FILE "log" /* error file */ |
26 | #define LOCK_FILE "bug:lock" /* lock file name */ | |
27 | #define SUMMARY_FILE "summary" /* summary file */ | |
28 | #define TMP_BUG "errors/BUG_XXXXXX" /* tmp bug report */ | |
70c98dc6 | 29 | |
70c98dc6 KB |
30 | #define CHN (char *)NULL /* null arg string */ |
31 | #define COMMENT '#' /* comment in redist file */ | |
32 | #define EOS (char)NULL /* end of string */ | |
33 | #define ERR -1 /* error return */ | |
34 | #define MAXLINELEN 200 /* max line length in message */ | |
35 | #define NO 0 /* no/false */ | |
36 | #define OK 0 /* okay return */ | |
37 | #define YES 1 /* yes/true */ | |
38 | ||
39 | typedef struct { | |
40 | short found, /* line number if found */ | |
41 | redist; /* if part of redist headers */ | |
42 | int (*valid)(); /* validation routine */ | |
43 | short len; /* length of tag */ | |
44 | char *tag, /* leading tag */ | |
45 | *line; /* actual line */ | |
46 | } HEADER; | |
3dc98623 | 47 | extern HEADER mailhead[]; |
70c98dc6 KB |
48 | |
49 | #define DATE_TAG 0 /* "Date:" offset */ | |
50 | #define FROM_TAG 1 /* "From " offset */ | |
51 | #define CFROM_TAG 2 /* "From:" offset */ | |
52 | #define INDX_TAG 3 /* "Index:" offset */ | |
53 | #define MSG_TAG 4 /* "Message-Id:" offset */ | |
54 | #define RPLY_TAG 5 /* "Reply-To:" offset */ | |
55 | #define RET_TAG 6 /* "Return-Path:" offset */ | |
56 | #define SUBJ_TAG 7 /* "Subject:" offset */ | |
57 | #define TO_TAG 8 /* "To:" offset */ | |
58 | ||
59 | /* so sizeof doesn't return 0 */ | |
60 | #include <sys/param.h> | |
3dc98623 KB |
61 | #include <sys/dir.h> |
62 | extern char bfr[MAXBSIZE], /* general I/O buffer */ | |
63 | dir[MAXNAMLEN], /* subject and folder */ | |
64 | folder[MAXNAMLEN], | |
65 | tmpname[sizeof(TMP_BUG) + 5]; /* temp bug file */ |