|
|
1.1 root 1: /*
2: * Copyright (c) 1986, 1987 Regents of the University of California.
3: * All rights reserved.
4: *
5: * Redistribution and use in source and binary forms are permitted
6: * provided that: (1) source distributions retain this entire copyright
7: * notice and comment, and (2) distributions including binaries display
8: * the following acknowledgement: ``This product includes software
9: * developed by the University of California, Berkeley and its contributors''
10: * in the documentation or other materials provided with the distribution
11: * and in all advertising materials mentioning features or use of this
12: * software. Neither the name of the University nor the names of its
13: * contributors may be used to endorse or promote products derived
14: * from this software without specific prior written permission.
15: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
16: * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
17: * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18: *
19: * @(#)bug.h 5.9 (Berkeley) 6/1/90
20: */
21:
22: #define BUGS_HOME "[email protected]"
23: #define BUGS_ID "bugs"
24:
25: /*
26: * the METOO definition has the bugfiler exit with an error (-1) status
27: * if there's a problem. This causes sendmail to send off a copy of the
28: * report (as failed mail) to the "owner" of the mail alias that executed
29: * the bugfiler. This is great if you would have otherwise lost the bug
30: * report. It's not so great if you get a whole bunch of mail that you
31: * really don't want.
32: */
33: #define METOO
34:
35: /* files */
36: #define ACK_FILE "bug:ack" /* acknowledge file */
37: #define DIST_FILE "bug:redist" /* redistribution file */
38: #define ERROR_FILE "log" /* error file */
39: #define LOCK_FILE "bug:lock" /* lock file name */
40: #define SUMMARY_FILE "summary" /* summary file */
41: #define TMP_BUG "errors/BUG_XXXXXX" /* tmp bug report */
42: #define TMP_DIR "errors" /* tmp directory */
43:
44: #define CHN (char *)NULL /* null arg string */
45: #define COMMENT '#' /* comment in redist file */
46: #define EOS (char)NULL /* end of string */
47: #define ERR -1 /* error return */
48: #define MAXLINELEN 200 /* max line length in message */
49: #define NO 0 /* no/false */
50: #define OK 0 /* okay return */
51: #define YES 1 /* yes/true */
52:
53: typedef struct {
54: short found, /* line number if found */
55: redist; /* if part of redist headers */
56: int (*valid)(); /* validation routine */
57: short len; /* length of tag */
58: char *tag, /* leading tag */
59: *line; /* actual line */
60: } HEADER;
61: extern HEADER mailhead[];
62:
63: #define DATE_TAG 0 /* "Date:" offset */
64: #define FROM_TAG 1 /* "From " offset */
65: #define CFROM_TAG 2 /* "From:" offset */
66: #define INDX_TAG 3 /* "Index:" offset */
67: #define MSG_TAG 4 /* "Message-Id:" offset */
68: #define RPLY_TAG 5 /* "Reply-To:" offset */
69: #define RET_TAG 6 /* "Return-Path:" offset */
70: #define SUBJ_TAG 7 /* "Subject:" offset */
71: #define TO_TAG 8 /* "To:" offset */
72: #define APPAR_TO_TAG 9 /* "Apparently-To:" offset */
73:
74: /* so sizeof doesn't return 0 */
75: #include <sys/param.h>
76: #include <sys/dir.h>
77: extern char bfr[MAXBSIZE], /* general I/O buffer */
78: dir[MAXNAMLEN], /* subject and folder */
79: folder[MAXNAMLEN],
80: tmpname[sizeof(TMP_BUG) + 5]; /* temp bug file */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.