Rev | Line | |
---|
[232] | 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 | int send_mail;
|
---|
| 28 | sh_filter_type * mail_filter;
|
---|
| 29 | struct alias * next;
|
---|
| 30 | struct alias * all_next;
|
---|
| 31 | };
|
---|
| 32 |
|
---|
| 33 | extern struct alias * all_recipients;
|
---|
| 34 |
|
---|
| 35 | int sh_mail_msg (const char * message);
|
---|
| 36 |
|
---|
| 37 | /* Per recipient mail key
|
---|
| 38 | */
|
---|
| 39 |
|
---|
| 40 | int sh_nmail_get_mailkey (const char * alias, char * buf, size_t bufsiz,
|
---|
| 41 | time_t * id_audit);
|
---|
| 42 |
|
---|
| 43 | SH_MUTEX_EXTERN(mutex_listall);
|
---|
| 44 | SH_MUTEX_EXTERN(mutex_fifo_mail);
|
---|
| 45 | extern SH_FIFO * fifo_mail;
|
---|
| 46 |
|
---|
| 47 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.