#ifndef FUNCTIONS_H
#define FUNCTIONS_H

enum {
	MULTIPLIER = 31,
	MAXADDR = 5000
};

typedef struct maddr maddr;
typedef struct iaddr iaddr;

typedef struct hist_stat {
        int inode;
        int saved_pos;
} hist_stat;

struct maddr {
        char *mail;
        int cnt;
        maddr *next;
};

struct iaddr {
	char *mail;
	iaddr *next;
};

 /* Hash table with addresses from log file */
maddr *spammer_hash[MAXADDR];
iaddr *iaddrlist ;


int isIgnored(char *);
void check_addr(char *);
void addToIgnored(char *);
void rmspace(char *, char *);
int send_notify_mail(char *);
unsigned int hash(char *);
void save_pos(hist_stat *);
void get_saved_pos(hist_stat *);
int makemap(void);
void loadIgnoreList(char *);
void loadIgnore_sendmail(char *);
int qmail_finalize(void);
int sendmail_finalize(void);
void print_list(int);

#endif



syntax highlighted by Code2HTML, v. 0.9.1