Added -mts switch to post, send, and whom. Replaced test-sendmail-pipe
[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
23 char *getusername(void);
24 char *getfullname(void);
25 char *getlocalmbox(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  * MTS specific variables
43  */
44
45 /* whether to speak SMTP, and over the network or directly to sendmail */
46 #define MTS_SMTP          0
47 #define MTS_SENDMAIL_SMTP 1
48 #define MTS_SENDMAIL_PIPE 2
49 extern int sm_mts;
50 void save_mts_method (const char *);
51
52 extern char *sendmail;
53
54 /*
55  * SMTP/POP stuff
56  */
57 extern char *clientname;
58 extern char *servers;
59 extern char *pophost;
60
61 /*
62  * Global MailDelivery File
63  */
64 extern char *maildelivery;
65
66 /*
67  * Aliasing Facility (doesn't belong here)
68  */
69 extern int Everyone;
70 extern char *NoShell;