Mercurial > hg > Applications > mh
comparison zotnet/mf/mf.h @ 0:bce86c4163a3
Initial revision
author | kono |
---|---|
date | Mon, 18 Apr 2005 23:46:02 +0900 |
parents | |
children | 441a2190cfae |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:bce86c4163a3 |
---|---|
1 /* mf.h - include file for mailbox filters */ | |
2 /* @(#)$Id$ */ | |
3 | |
4 #include "../h/strings.h" | |
5 | |
6 #ifndef TRUE | |
7 #define TRUE 1 | |
8 #endif /* TRUE */ | |
9 #ifndef FALSE | |
10 #define FALSE 0 | |
11 #endif /* FALSE */ | |
12 | |
13 #ifndef NOTOK | |
14 #define NOTOK (-1) | |
15 #endif /* NOTOK */ | |
16 #ifndef OK | |
17 #define OK 0 | |
18 #endif /* OK */ | |
19 #ifndef DONE | |
20 #define DONE 1 | |
21 #endif /* DONE */ | |
22 | |
23 #define LINESIZ 512 | |
24 | |
25 #define MBXMODE 0600 | |
26 #define TMPMODE 0600 | |
27 | |
28 #define OWIDTH 75 /* length of a header line */ | |
29 | |
30 #define HFROM 1 /* header has From: component */ | |
31 #define HSNDR 2 /* header has Sender: component */ | |
32 #define HADDR 3 /* header has address component */ | |
33 #define HDATE 4 /* header has Date: component */ | |
34 #define HOTHR 5 /* header is unimportant */ | |
35 | |
36 /* */ | |
37 | |
38 struct adrx { | |
39 char *text; | |
40 char *pers; | |
41 char *mbox; | |
42 char *host; | |
43 char *path; | |
44 char *grp; | |
45 int ingrp; | |
46 char *note; | |
47 char *err; | |
48 }; | |
49 | |
50 /* */ | |
51 | |
52 /* | |
53 * Codes returned by uucp2mmdf(), mmdf2uucp() | |
54 */ | |
55 | |
56 #define MFOK 0 /* all went well */ | |
57 /* remaining codes must > DONE */ | |
58 #define MFPRM 2 /* bad parameter */ | |
59 #define MFSIO 3 /* stdio package went screwy */ | |
60 #define MFROM 4 /* from line was bad */ | |
61 #define MFHDR 5 /* headers were bad */ | |
62 #define MFTXT 6 /* text was bad */ | |
63 #define MFERR 7 /* I/O or system error */ | |
64 #define MFDLM 8 /* Bad delimiter in MMDF file */ | |
65 | |
66 | |
67 int isfrom (), lequal (), mfgets (); | |
68 char *legal_person (); | |
69 struct adrx *seekadrx (), *getadrx (), *uucpadrx (); |