1 #ifndef FUNCTIONS_H
2 #define FUNCTIONS_H
3 
4 #define	SRC_IGNOREFILE	0x02
5 #define	SRC_BADMAILFROM	0x04
6 #define	SRC_HIGHFILE	0x08
7 #define	SRC_ALL		0xFF
8 
9 #define MAXADDR         5000
10 
11 typedef struct maddr maddr;
12 typedef struct iaddr iaddr;
13 
14 typedef struct hist_stat {
15         int inode;
16         int saved_pos;
17 } hist_stat;
18 
19 struct maddr {
20         char *mail;
21         int cnt;
22         maddr *next;
23 };
24 
25 struct iaddr {
26 	char *mail;
27 	char src;
28 	iaddr *next;
29 };
30 
31 extern maddr *spammer_hash[MAXADDR];
32 extern iaddr *iaddrlist;
33 
34 
35 int
36 is_ignored(char *, char);
37 
38 void
39 check_addr(char *);
40 
41 void
42 add_ignored(char *, char);
43 
44 int
45 removespaces(char *, int);
46 
47 int
48 send_notify_mail(char *, char *, char *);
49 
50 void
51 save_pos(hist_stat *);
52 
53 void
54 get_saved_pos(hist_stat *);
55 
56 int
57 makemap(void);
58 
59 void
60 load_ignore_list(char *, char);
61 
62 void
63 load_ignore_sendmail(char *, char);
64 
65 int
66 qmail_finalize(void);
67 
68 int
69 sendmail_finalize(void);
70 
71 void
72 print_list(int);
73 
74 
75 #endif
76