2011-11-14 15:57:52 +01:00
|
|
|
/*
|
|
|
|
* piler.h, SJ
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _PILER_H
|
|
|
|
#define _PILER_H
|
|
|
|
|
|
|
|
#include <misc.h>
|
|
|
|
#include <list.h>
|
|
|
|
#include <parser.h>
|
|
|
|
#include <errmsg.h>
|
|
|
|
#include <smtpcodes.h>
|
|
|
|
#include <session.h>
|
|
|
|
#include <decoder.h>
|
2011-11-16 14:47:47 +01:00
|
|
|
#include <list.h>
|
2011-11-19 21:25:44 +01:00
|
|
|
#include <rules.h>
|
2011-11-14 15:57:52 +01:00
|
|
|
#include <defs.h>
|
2011-11-19 21:25:44 +01:00
|
|
|
#include <tai.h>
|
2011-11-14 15:57:52 +01:00
|
|
|
#include <sig.h>
|
|
|
|
#include <av.h>
|
2011-11-19 21:25:44 +01:00
|
|
|
#include <rules.h>
|
2011-11-14 15:57:52 +01:00
|
|
|
#include <config.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
#ifdef HAVE_MEMCACHED
|
|
|
|
#include "memc.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
int do_av_check(struct session_data *sdata, char *rcpttoemail, char *fromemail, char *virusinfo, struct __data *data, struct __config *cfg);
|
|
|
|
|
2011-11-16 14:47:47 +01:00
|
|
|
int make_body_digest(struct session_data *sdata, struct __config *cfg);
|
2011-11-19 21:25:44 +01:00
|
|
|
void digest_file(char *filename, char *digest);
|
2011-11-14 15:57:52 +01:00
|
|
|
|
|
|
|
int processMessage(struct session_data *sdata, struct _state *sstate, struct __config *cfg);
|
2011-11-19 21:25:44 +01:00
|
|
|
int store_file(struct session_data *sdata, char *filename, int startpos, int len, struct __config *cfg);
|
|
|
|
int store_attachments(struct session_data *sdata, struct _state *state, struct __config *cfg);
|
2011-11-14 15:57:52 +01:00
|
|
|
|
|
|
|
struct __config read_config(char *configfile);
|
|
|
|
|
|
|
|
void check_and_create_directories(struct __config *cfg, uid_t uid, gid_t gid);
|
|
|
|
|
|
|
|
void updateCounters(struct session_data *sdata, struct __data *data, struct __counters *counters, struct __config *cfg);
|
|
|
|
|
|
|
|
#endif /* _PILER_H */
|
|
|
|
|