Mercurial > hg > Applications > mh
comparison zotnet/mts/mts.c @ 10:a6481689f99c
*** empty log message ***
author | kono |
---|---|
date | Wed, 06 Dec 2006 03:17:53 +0900 |
parents | bce86c4163a3 |
children | 441a2190cfae |
comparison
equal
deleted
inserted
replaced
9:52d0fa25c554 | 10:a6481689f99c |
---|---|
31 #define NOTOK (-1) | 31 #define NOTOK (-1) |
32 #define OK 0 | 32 #define OK 0 |
33 | 33 |
34 #define NULLCP ((char *) 0) | 34 #define NULLCP ((char *) 0) |
35 | 35 |
36 #ifdef __CYGWIN32__ | |
37 #include <errno.h> | 36 #include <errno.h> |
38 #endif | |
39 extern int errno; | |
40 | 37 |
41 static char *tailor_value (); | 38 static char *tailor_value (); |
42 | 39 |
43 | 40 |
44 #if defined(SYS5) && !defined(_AIX) | 41 #if defined(SYS5) && !defined(_AIX) |
62 strings. In this case, the appropriate ...lfil array should contain | 59 strings. In this case, the appropriate ...lfil array should contain |
63 the name of the file in the user's home directory. Usually, this is | 60 the name of the file in the user's home directory. Usually, this is |
64 something like ".mail". | 61 something like ".mail". |
65 */ | 62 */ |
66 | 63 |
67 static char *mtstailor = "/usr/local/mh/lib/mtstailor"; | 64 static char *mtstailor = "/usr/local/lib/mh/mtstailor"; |
68 | 65 |
69 static char *localname = ""; | 66 static char *localname = ""; |
70 static char *localdomain = ""; | 67 static char *localdomain = ""; |
71 static char *systemname = ""; | 68 static char *systemname = ""; |
72 #ifdef MF | 69 #ifdef MF |
89 static int MMailids = 0; | 86 static int MMailids = 0; |
90 static char *mmailid = "0"; | 87 static char *mmailid = "0"; |
91 | 88 |
92 | 89 |
93 #ifdef MF | 90 #ifdef MF |
94 char *umincproc = "/usr/local/mh/lib/uminc"; | 91 char *umincproc = "/usr/local/lib/mh/uminc"; |
95 #else /* MF */ | 92 #else /* MF */ |
96 char *umincproc = NULL; | 93 char *umincproc = NULL; |
97 #endif /* MF */ | 94 #endif /* MF */ |
98 | 95 |
99 | 96 |
115 char *Fromtmp = "/tmp/rml.f.XXXXXX"; | 112 char *Fromtmp = "/tmp/rml.f.XXXXXX"; |
116 char *Msgtmp = "/tmp/rml.m.XXXXXX"; | 113 char *Msgtmp = "/tmp/rml.m.XXXXXX"; |
117 char *Errtmp = "/tmp/rml.e.XXXXXX"; | 114 char *Errtmp = "/tmp/rml.e.XXXXXX"; |
118 int Tmpmode = 0600; | 115 int Tmpmode = 0600; |
119 static char *tmpmode = "0600"; | 116 static char *tmpmode = "0600"; |
120 char *Okhosts = "/usr/local/mh/lib/Rmail.OkHosts"; | 117 char *Okhosts = "/usr/local/lib/mh/Rmail.OkHosts"; |
121 char *Okdests = "/usr/local/mh/lib/Rmail.OkDests"; | 118 char *Okdests = "/usr/local/lib/mh/Rmail.OkDests"; |
122 #endif /* MHMTS */ | 119 #endif /* MHMTS */ |
123 | 120 |
124 #ifdef MMDFMTS | 121 #ifdef MMDFMTS |
125 #endif /* MMDFMTS */ | 122 #endif /* MMDFMTS */ |
126 | 123 |
127 #ifdef SENDMTS | 124 #ifdef SENDMTS |
128 char *hostable = "/usr/local/mh/lib/hosts"; | 125 char *hostable = "/usr/local/lib/mh/hosts"; |
129 char *sendmail = "/usr/sbin/sendmail"; | 126 char *sendmail = "/usr/lib/sendmail"; |
130 #endif /* SENDMTS */ | 127 #endif /* SENDMTS */ |
131 | 128 |
132 | 129 |
133 /* SMTP/POP stuff */ | 130 /* SMTP/POP stuff */ |
134 | 131 |
150 #if defined(BPOP) || defined(NNTP) | 147 #if defined(BPOP) || defined(NNTP) |
151 char *popbbhost = ""; | 148 char *popbbhost = ""; |
152 #endif /* BPOP || NNTP */ | 149 #endif /* BPOP || NNTP */ |
153 #ifdef BPOP | 150 #ifdef BPOP |
154 char *popbbuser = ""; | 151 char *popbbuser = ""; |
155 char *popbblist = "/usr/local/mh/lib/hosts.popbb"; | 152 char *popbblist = "/usr/local/lib/mh/hosts.popbb"; |
156 #endif /* BPOP */ | 153 #endif /* BPOP */ |
157 | 154 |
158 | 155 |
159 /* MailDelivery */ | 156 /* MailDelivery */ |
160 | 157 |
161 char *maildelivery = "/usr/local/mh/lib/maildelivery"; | 158 char *maildelivery = "/usr/local/lib/mh/maildelivery"; |
162 | 159 |
163 | 160 |
164 /* Aliasing Facility (doesn't belong here) */ | 161 /* Aliasing Facility (doesn't belong here) */ |
165 | 162 |
166 int Everyone = NOTOK; | 163 int Everyone = NOTOK; |
172 static char *localuser = "0"; | 169 static char *localuser = "0"; |
173 #endif /* MH_PLUS */ | 170 #endif /* MH_PLUS */ |
174 | 171 |
175 /* */ | 172 /* */ |
176 | 173 |
177 /* customize the MTS settings for MH by reading /usr/local/mh/lib/mtstailor */ | 174 /* customize the MTS settings for MH by reading /usr/local/lib/mh/mtstailor */ |
178 | 175 |
179 static struct bind { | 176 static struct bind { |
180 char *keyword; | 177 char *keyword; |
181 char **value; | 178 char **value; |
182 } binds[] = { | 179 } binds[] = { |