]> diplodocus.org Git - nmh/blob - h/mts.h
Fix invalid pointer arithmetic.
[nmh] / h / mts.h
1 /* mts.h -- definitions for the mail system
2 */
3
4 /*
5 * Local and UUCP Host Name
6 */
7 char *LocalName(int);
8 char *SystemName(void);
9
10 /*
11 * Mailboxes
12 */
13 extern char *mmdfldir;
14 extern char *mmdflfil;
15 extern char *uucpldir;
16 extern char *uucplfil;
17 extern char *spoollocking;
18
19 #define MAILDIR (mmdfldir && *mmdfldir ? mmdfldir : getenv ("HOME"))
20 #define MAILFIL (mmdflfil && *mmdflfil ? mmdflfil : getusername ())
21
22 char *getusername(void);
23 char *getfullname(void);
24 char *getlocalmbox(void);
25
26 /*
27 * Separators
28 */
29 #define MMDF_DELIM "\001\001\001\001\n"
30
31 /*
32 * Read mts.conf file
33 */
34 void mts_init (void);
35
36 /*
37 * MTS specific variables
38 */
39
40 /* whether to speak SMTP, and over the network or directly to sendmail */
41 #define MTS_SMTP 0
42 #define MTS_SENDMAIL_SMTP 1
43 #define MTS_SENDMAIL_PIPE 2
44 extern int sm_mts;
45 void save_mts_method (const char *);
46
47 extern char *sendmail;
48
49 /*
50 * SMTP/POP stuff
51 */
52 extern char *clientname;
53 extern char *servers;
54 extern char *pophost;
55
56 /*
57 * Global MailDelivery File
58 */
59 extern char *maildelivery;