Sigh. Looks like we need a function after all; create a new function
[mmh] / h / mts.h
1
2 /*
3  * mts.h -- definitions for the mail system
4  */
5
6 /*
7  * Local and UUCP Host Name
8  */
9 char *LocalName(int);
10 char *SystemName(void);
11
12 /*
13  * Mailboxes
14  */
15 extern char *mmdfldir;
16 extern char *mmdflfil;
17 extern char *uucpldir;
18 extern char *uucplfil;
19
20 #define MAILDIR (mmdfldir && *mmdfldir ? mmdfldir : getenv ("HOME"))
21 #define MAILFIL (mmdflfil && *mmdflfil ? mmdflfil : getusername ())
22 #define UUCPDIR (uucpldir && *uucpldir ? uucpldir : getenv ("HOME"))
23 #define UUCPFIL (uucplfil && *uucplfil ? uucplfil : getusername ())
24
25 char *getusername(void);
26 char *getfullname(void);
27 char *getlocalmbox(void);
28
29 /*
30  * Separators
31  */
32 extern char *mmdlm1;
33 extern char *mmdlm2;
34
35 #define isdlm1(s) (strcmp (s, mmdlm1) == 0)
36 #define isdlm2(s) (strcmp (s, mmdlm2) == 0)
37
38 /*
39  * Read mts.conf file
40  */
41 void mts_init (char *);
42
43 /*
44  * MTS specific variables
45  */
46 #if defined (SMTPMTS)
47
48 /* whether to speak SMTP to localhost:25 or to /usr/sbin/sendmail */
49 #define MTS_SMTP     0
50 #define MTS_SENDMAIL 1
51 extern int sm_mts;
52
53 extern char *hostable;
54 extern char *sendmail;
55 #endif
56
57 /*
58  * SMTP/POP stuff
59  */
60 extern char *clientname;
61 extern char *servers;
62 extern char *pophost;
63
64 /*
65  * Global MailDelivery File
66  */
67 extern char *maildelivery;
68
69 /*
70  * Aliasing Facility (doesn't belong here)
71  */
72 extern int Everyone;
73 extern char *NoShell;