mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 07:11:59 +01:00
d687fa16ab
Signed-off-by: Janos SUTO <sj@acts.hu>
24 lines
895 B
C
24 lines
895 B
C
/*
|
|
* rules.h, SJ
|
|
*/
|
|
|
|
#ifndef _RULES_H
|
|
#define _RULES_H
|
|
|
|
#include "defs.h"
|
|
|
|
void load_rules(struct session_data *sdata, struct node *xhash[], char *table);
|
|
int append_rule(struct node *xhash[], struct rule_cond *rule_cond);
|
|
struct rule *create_rule_item(struct rule_cond *rule_cond);
|
|
char *check_against_ruleset(struct node *xhash[], struct parser_state *state, int size, int spam);
|
|
time_t query_retain_period(struct data *data, struct parser_state *state, int size, int spam, struct config *cfg);
|
|
int get_folder_id_by_rule(struct data *data, struct parser_state *state, int size, int spam, struct config *cfg);
|
|
int check_size_rule(int message_size, int size, char *_size);
|
|
int check_spam_rule(int is_spam, int spam);
|
|
int check_attachment_rule(struct parser_state *state, struct rule *rule);
|
|
|
|
void initrules(struct node *xhash[]);
|
|
void clearrules(struct node *xhash[]);
|
|
|
|
#endif /* _RULES_H */
|