5ddd837ec78fca9f1bc58fd7cee407493817c97c
[mmh] / h / mts.h
1 /*
2 ** mts.h -- definitions for the mail system
3 */
4
5 /*
6 ** Local and UUCP Host Name
7 */
8 char *LocalName(void);
9 char *SystemName(void);
10
11 /*
12 ** Mailboxes
13 */
14 extern char *mmdfldir;
15 extern char *mmdflfil;
16 extern char *uucpldir;
17 extern char *uucplfil;
18
19 #define MAILDIR (mmdfldir && *mmdfldir ? mmdfldir : getenv("HOME"))
20 #define MAILFIL (mmdflfil && *mmdflfil ? mmdflfil : getusername())
21 #define UUCPDIR (uucpldir && *uucpldir ? uucpldir : getenv("HOME"))
22 #define UUCPFIL (uucplfil && *uucplfil ? uucplfil : getusername())
23
24 char *getusername(void);
25 char *getfullname(void);
26
27 /*
28 ** Separators
29 */
30 extern char *mmdlm1;
31 extern char *mmdlm2;
32
33 #define isdlm1(s) (strcmp(s, mmdlm1) == 0)
34 #define isdlm2(s) (strcmp(s, mmdlm2) == 0)
35
36 /*
37 ** Read mts.conf file
38 */
39 void mts_init(char *);
40
41 /*
42 ** Global MailDelivery File
43 */
44 extern char *maildelivery;
45
46 /*
47 ** Aliasing Facility (doesn't belong here)
48 */
49 extern int Everyone;
50 extern char *NoShell;