1: /* mf.h - include file for mailbox filters */
2:
3: #include "../h/strings.h"
4:
5: #ifndef TRUE
6: #define TRUE 1
7: #endif TRUE
8: #ifndef FALSE
9: #define FALSE 0
10: #endif FALSE
11:
12: #ifndef NOTOK
13: #define NOTOK (-1)
14: #endif NOTOK
15: #ifndef OK
16: #define OK 0
17: #endif OK
18: #ifndef DONE
19: #define DONE 1
20: #endif DONE
21:
22: #define LINESIZ 512
23:
24: #define MBXMODE 0600
25: #define TMPMODE 0600
26:
27: #define OWIDTH 75 /* length of a header line */
28:
29: #define HFROM 1 /* header has From: component */
30: #define HSNDR 2 /* header has Sender: component */
31: #define HADDR 3 /* header has address component */
32: #define HDATE 4 /* header has Date: component */
33: #define HOTHR 5 /* header is unimportant */
34:
35: /* */
36:
37: struct adrx {
38: char *text;
39: char *pers;
40: char *mbox;
41: char *host;
42: char *path;
43: char *grp;
44: int ingrp;
45: char *note;
46: char *err;
47: };
48:
49: /* */
50:
51: /*
52: * Codes returned by uucp2mmdf(), mmdf2uucp()
53: */
54:
55: #define MFOK 0 /* all went well */
56: /* remaining codes must > DONE */
57: #define MFPRM 2 /* bad parameter */
58: #define MFSIO 3 /* stdio package went screwy */
59: #define MFROM 4 /* from line was bad */
60: #define MFHDR 5 /* headers were bad */
61: #define MFTXT 6 /* text was bad */
62: #define MFERR 7 /* I/O or system error */
63: #define MFDLM 8 /* Bad delimiter in MMDF file */
64:
65:
66: int isfrom (), lequal (), mfgets ();
67: char *legal_person ();
68: struct adrx *seekadrx (), *getadrx (), *uucpadrx ();
Defined struct's
adrx
defined in line
37; used 8 times
Defined macros
DONE
defined in line
19; used 2 times
FALSE
defined in line
9; used 3 times
HADDR
defined in line
31;
never used
HDATE
defined in line
32;
never used
HFROM
defined in line
29;
never used
HOTHR
defined in line
33;
never used
HSNDR
defined in line
30;
never used
MFDLM
defined in line
63;
never used
MFERR
defined in line
62;
never used
MFHDR
defined in line
60;
never used
MFOK
defined in line
55;
never used
MFPRM
defined in line
57;
never used
MFROM
defined in line
59;
never used
MFSIO
defined in line
58;
never used
MFTXT
defined in line
61;
never used
NOTOK
defined in line
13; used 59 times
- in line 12
- in /usr/src/new/mh/uip/rmail.c line
181,
194,
225,
231-238(4),
251,
264,
270-271(2),
278,
329,
340,
353,
366,
401,
413-417(2),
427,
445-450(2),
567-585(9),
592-600(4),
618
- in /usr/src/new/mh/uip/umhook.c line
44,
121,
144,
172,
183,
216-229(5),
252,
288-295(3),
330,
365,
413,
419,
427-430(3),
459
OK
defined in line
16; used 16 times
TRUE
defined in line
6; used 5 times
Usage of this include