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 28 times
Defined macros
DONE
defined in line
19; used 10 times
FALSE
defined in line
9; used 17 times
HADDR
defined in line
31; used 20 times
HDATE
defined in line
32; used 4 times
HFROM
defined in line
29; used 3 times
HOTHR
defined in line
33; used 2 times
HSNDR
defined in line
30; used 2 times
LINESIZ
defined in line
22; used 23 times
- in /usr/src/new/mh/zotnet/mf/mmuu.c line
121,
194-196(3),
430-432(3),
509
- in /usr/src/new/mh/zotnet/mf/muinc.c line
13-14(2),
146
- in /usr/src/new/mh/zotnet/mf/uminc.c line
13-14(2),
188
- in /usr/src/new/mh/zotnet/mf/uumm.c line
93-94(2),
125,
203,
423-425(3),
570,
605
MFDLM
defined in line
63; used 2 times
MFERR
defined in line
62; used 21 times
MFHDR
defined in line
60; used 5 times
MFOK
defined in line
55; used 2 times
MFPRM
defined in line
57; used 2 times
MFROM
defined in line
59; used 6 times
MFSIO
defined in line
58; used 2 times
MFTXT
defined in line
61; used 2 times
NOTOK
defined in line
13; used 88 times
- in line 12
- in /usr/src/new/mh/zotnet/mf/mf.c line
465,
482-488(3),
498-509(5),
516,
547,
561-562(2),
569-570(2),
576,
585,
594,
602,
631-638(4),
651,
671,
701,
739,
774,
942,
985
- in /usr/src/new/mh/zotnet/mf/mmuu.c line
62(2),
95,
125-128(2),
145-149(2),
157,
203-210(3),
414
- in /usr/src/new/mh/zotnet/mf/muinc.c line
11-12(2),
29-31(2),
59-69(4),
84,
96,
116,
150-158(3),
173-174(2)
- in /usr/src/new/mh/zotnet/mf/uminc.c line
11-12(2),
32-34(2),
62-73(5),
90,
105,
111,
131,
147,
192-200(3),
215-216(2)
- in /usr/src/new/mh/zotnet/mf/uumm.c line
62(2),
97,
129-132(2),
142,
150-154(2),
162,
405
OK
defined in line
16; used 37 times
- in line 15
- in /usr/src/new/mh/zotnet/mf/mf.c line
484,
507,
528,
580,
598,
619,
647,
680,
716,
769,
951
- in /usr/src/new/mh/zotnet/mf/mmuu.c line
99-103(3),
136,
180,
287,
308,
330-335(2),
354,
365-369(2),
417
- in /usr/src/new/mh/zotnet/mf/uumm.c line
101-107(4),
140,
189,
244,
286,
308,
331-336(2),
408
TRUE
defined in line
6; used 4 times
Usage of this include