source: trunk/include/sh_mail_int.h@ 256

Last change on this file since 256 was 232, checked in by katerina, 15 years ago

Add some missing files

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