Line | |
---|
1 | #ifndef SH_MAIL_INT_H
|
---|
2 | #define SH_MAIL_INT_H
|
---|
3 |
|
---|
4 | extern int sh_mail_all_in_one;
|
---|
5 |
|
---|
6 | /* MX Resolver Struct
|
---|
7 | */
|
---|
8 | typedef struct mx_ {
|
---|
9 | int pref;
|
---|
10 | char * address;
|
---|
11 | } mx;
|
---|
12 |
|
---|
13 | typedef struct dnsrep_ {
|
---|
14 | int count;
|
---|
15 | mx * reply;
|
---|
16 | } dnsrep;
|
---|
17 |
|
---|
18 | int free_mx (dnsrep * answers);
|
---|
19 |
|
---|
20 | /* adress struct
|
---|
21 | */
|
---|
22 | struct alias {
|
---|
23 | sh_string * recipient;
|
---|
24 | struct alias * recipient_list;
|
---|
25 | dnsrep * mx_list;
|
---|
26 | int severity;
|
---|
27 | short send_mail;
|
---|
28 | short isAlias;
|
---|
29 | sh_filter_type * mail_filter;
|
---|
30 | struct alias * next;
|
---|
31 | struct alias * all_next;
|
---|
32 | };
|
---|
33 |
|
---|
34 | extern struct alias * all_recipients;
|
---|
35 |
|
---|
36 | int sh_mail_msg (const char * message);
|
---|
37 |
|
---|
38 | /* Per recipient mail key
|
---|
39 | */
|
---|
40 |
|
---|
41 | int sh_nmail_get_mailkey (const char * alias, char * buf, size_t bufsiz,
|
---|
42 | time_t * id_audit);
|
---|
43 |
|
---|
44 | SH_MUTEX_EXTERN(mutex_listall);
|
---|
45 | SH_MUTEX_EXTERN(mutex_fifo_mail);
|
---|
46 | extern SH_FIFO * fifo_mail;
|
---|
47 |
|
---|
48 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.