]> diplodocus.org Git - nmh/blob - h/mts.h
dfd4ef885b5c613bc0f3f5b288205ed002e9e202
[nmh] / 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(int);
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 extern char *spoollocking;
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 /*
34 * Read mts.conf file
35 */
36 void mts_init (void);
37
38 /*
39 * MTS specific variables
40 */
41
42 /* whether to speak SMTP, and over the network or directly to sendmail */
43 #define MTS_SMTP 0
44 #define MTS_SENDMAIL_SMTP 1
45 #define MTS_SENDMAIL_PIPE 2
46 extern int sm_mts;
47 void save_mts_method (const char *);
48
49 extern char *sendmail;
50
51 /*
52 * SMTP/POP stuff
53 */
54 extern char *clientname;
55 extern char *servers;
56 extern char *pophost;
57
58 /*
59 * Global MailDelivery File
60 */
61 extern char *maildelivery;