forked from ajwans/sSMTP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ssmtp.h
45 lines (32 loc) · 943 Bytes
/
ssmtp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
See COPYRIGHT for the license
*/
#include <sys/types.h>
#include <stdio.h>
#include <pwd.h>
#define BUF_SZ (1024 * 2) /* A pretty large buffer, but not outrageous */
#define MAXWAIT (10 * 60) /* Maximum wait between commands, in seconds */
#define MEDWAIT (5 * 60)
#define MAXSYSUID 999 /* Highest UID which is a system account */
#ifndef _POSIX_ARG_MAX
#define MAXARGS 4096
#else
#define MAXARGS _POSIX_ARG_MAX
#endif
/* ssmtp assumes MAXHOSTNAMELEN is alwyas in sys/param.h this is
not always the case (System V/Solaris) */
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 256
#endif
typedef enum {False, True} bool_t;
struct string_list {
char *string;
struct string_list *next;
};
typedef struct string_list headers_t;
typedef struct string_list rcpt_t;
/* arpadate.c */
void get_arpadate(char *);
/* base64.c */
void to64frombits(unsigned char *, const unsigned char *, int);
int from64tobits(char *, const char *);