summaryrefslogtreecommitdiffstats
path: root/src/number.js
Commit message (Expand)AuthorAgeFilesLines
* Bumped to v0.33wout2014-01-221-0/+0
* Added animatible poly's, bumped to v0.31wout2013-08-011-1/+1
* Added support for CommonJS and AMD, bunped to v0.300.31wout2013-07-261-1/+2
* Added SVG.Array and bumped to v0.29wout2013-07-251-1/+1
* Reworked SVG.Text to give more granular controlwout2013-07-231-1/+1
* Fix in SVG.Number for IE0.24wout2013-07-011-10/+12
* Fix in unit parser with negative values.wout2013-06-301-1/+1
* Added SVG.Number, reworked gradient systemwout2013-06-231-0/+75
d='n2' href='#n2'>2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
#ifndef RSPAMD_VIEW_H
#define RSPAMD_VIEW_H

#include "config.h"
#include "main.h"
#include "radix.h"

struct rspamd_view {
	GList *from_re_list;
	GHashTable *from_hash;

	GList *rcpt_re_list;
	GHashTable *rcpt_hash;

	radix_tree_t *ip_tree;
	radix_tree_t *client_ip_tree;

	GHashTable *symbols_hash;
	GList *symbols_re_list;
	gboolean skip_check;

	memory_pool_t *pool;
};

struct rspamd_view* init_view (memory_pool_t *pool);

gboolean add_view_from (struct rspamd_view *view, gchar *line);
gboolean add_view_rcpt (struct rspamd_view *view, gchar *line);
gboolean add_view_ip (struct rspamd_view *view, gchar *line);
gboolean add_view_client_ip (struct rspamd_view *view, gchar *line);
gboolean add_view_symbols (struct rspamd_view *view, gchar *line);

gboolean check_view (GList *views, const gchar *symbol, struct worker_task *task);
gboolean check_skip (GList *views, struct worker_task *task);

#endif