source: branches/samhain_3_1/include/sh_mail_int.h@ 503

Last change on this file since 503 was 272, checked in by katerina, 15 years ago

Fixes tickets #190, #191, #192, #193, and #194.

File size: 901 bytes
Line 
1#ifndef SH_MAIL_INT_H
2#define SH_MAIL_INT_H
3
4extern int sh_mail_all_in_one;
5
6/* MX Resolver Struct
7 */
8typedef struct mx_ {
9 int pref;
10 char * address;
11} mx;
12
13typedef struct dnsrep_ {
14 int count;
15 mx * reply;
16} dnsrep;
17
18int free_mx (dnsrep * answers);
19
20/* adress struct
21 */
22struct 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
34extern struct alias * all_recipients;
35
36int sh_mail_msg (const char * message);
37
38/* Per recipient mail key
39 */
40
41int sh_nmail_get_mailkey (const char * alias, char * buf, size_t bufsiz,
42 time_t * id_audit);
43
44SH_MUTEX_EXTERN(mutex_listall);
45SH_MUTEX_EXTERN(mutex_fifo_mail);
46extern SH_FIFO * fifo_mail;
47
48#endif
Note: See TracBrowser for help on using the repository browser.