-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuserlist.h
49 lines (43 loc) · 811 Bytes
/
userlist.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
46
47
48
49
/*
* $Id$
*/
typedef enum
{
ok = 0,
long_addr,
bad_addr,
long_host, /* from do_list */
host_failure,
caught_signal,
unk_addr
} bounce_reason;
#define BOUNCE_REASONS { \
"ok", \
"addr too long", \
"invalid address", \
"host too long", \
"host failure", \
"died on signal", \
"user unknown" \
}
typedef struct {
int statcode;
char *addr;
} userlist;
/*
* this doesn't really belong here but i didn't want to make a new header...
*
* we split the message into chunks where we need to insert something
* between chunks.
*/
#define ADDRESS_TOKEN "YOUR-EMAIL-ADDRESS"
typedef enum {
ACTION_NONE,
ACTION_TO_ADDR,
ACTION_ENCODED_TO_ADDR
} Action;
typedef struct {
char *ptr;
size_t len;
Action action;
} MessageChunk;