]> diplodocus.org Git - nmh/blob - docs/historical/mh-6.8.5/zotnet/mf/RCS/mf.h,v
Beginning of implementation of new argsplit() function to handle arguments
[nmh] / docs / historical / mh-6.8.5 / zotnet / mf / RCS / mf.h,v
1 head 1.3;
2 access;
3 symbols;
4 locks; strict;
5 comment @ * @;
6
7
8 1.3
9 date 92.12.15.00.20.22; author jromine; state Exp;
10 branches;
11 next 1.2;
12
13 1.2
14 date 92.12.14.17.47.34; author jromine; state Exp;
15 branches;
16 next 1.1;
17
18 1.1
19 date 92.12.14.17.44.38; author jromine; state Exp;
20 branches;
21 next ;
22
23
24 desc
25 @@
26
27
28 1.3
29 log
30 @endif sugar
31 @
32 text
33 @/* mf.h - include file for mailbox filters */
34 /* @@(#)$Id: mf.h,v 1.2 1992/12/14 17:47:34 jromine Exp jromine $ */
35
36 #include "../h/strings.h"
37
38 #ifndef TRUE
39 #define TRUE 1
40 #endif /* TRUE */
41 #ifndef FALSE
42 #define FALSE 0
43 #endif /* FALSE */
44
45 #ifndef NOTOK
46 #define NOTOK (-1)
47 #endif /* NOTOK */
48 #ifndef OK
49 #define OK 0
50 #endif /* OK */
51 #ifndef DONE
52 #define DONE 1
53 #endif /* DONE */
54
55 #define LINESIZ 512
56
57 #define MBXMODE 0600
58 #define TMPMODE 0600
59
60 #define OWIDTH 75 /* length of a header line */
61
62 #define HFROM 1 /* header has From: component */
63 #define HSNDR 2 /* header has Sender: component */
64 #define HADDR 3 /* header has address component */
65 #define HDATE 4 /* header has Date: component */
66 #define HOTHR 5 /* header is unimportant */
67
68 /* \f */
69
70 struct adrx {
71 char *text;
72 char *pers;
73 char *mbox;
74 char *host;
75 char *path;
76 char *grp;
77 int ingrp;
78 char *note;
79 char *err;
80 };
81
82 /* \f */
83
84 /*
85 * Codes returned by uucp2mmdf(), mmdf2uucp()
86 */
87
88 #define MFOK 0 /* all went well */
89 /* remaining codes must > DONE */
90 #define MFPRM 2 /* bad parameter */
91 #define MFSIO 3 /* stdio package went screwy */
92 #define MFROM 4 /* from line was bad */
93 #define MFHDR 5 /* headers were bad */
94 #define MFTXT 6 /* text was bad */
95 #define MFERR 7 /* I/O or system error */
96 #define MFDLM 8 /* Bad delimiter in MMDF file */
97
98
99 int isfrom (), lequal (), mfgets ();
100 char *legal_person ();
101 struct adrx *seekadrx (), *getadrx (), *uucpadrx ();
102 @
103
104
105 1.2
106 log
107 @add id
108 @
109 text
110 @d2 1
111 a2 1
112 /* @@(#)$Id: pidwait.c,v 1.9 1992/12/14 17:10:58 jromine Exp $ */
113 d8 1
114 a8 1
115 #endif TRUE
116 d11 1
117 a11 1
118 #endif FALSE
119 d15 1
120 a15 1
121 #endif NOTOK
122 d18 1
123 a18 1
124 #endif OK
125 d21 1
126 a21 1
127 #endif DONE
128 @
129
130
131 1.1
132 log
133 @Initial revision
134 @
135 text
136 @d2 1
137 @