aboutsummaryrefslogtreecommitdiffstats
path: root/src/view.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-15 15:08:31 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-15 15:08:31 +0400
commit99cd57ba7f0e6b9178ccacc6987b0854ed137d83 (patch)
tree1e1cb2993f5b8f1965925180be43f24b31477902 /src/view.h
parent44e9a2cda785d6630b30c90707b7a00deb6b2b35 (diff)
downloadrspamd-99cd57ba7f0e6b9178ccacc6987b0854ed137d83.tar.gz
rspamd-99cd57ba7f0e6b9178ccacc6987b0854ed137d83.zip
* Add ability to make views by recipient
Diffstat (limited to 'src/view.h')
-rw-r--r--src/view.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/view.h b/src/view.h
index ea15149bd..0b3412c85 100644
--- a/src/view.h
+++ b/src/view.h
@@ -9,6 +9,9 @@ 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;
@@ -22,6 +25,7 @@ struct rspamd_view {
struct rspamd_view* init_view (memory_pool_t *pool);
gboolean add_view_from (struct rspamd_view *view, char *line);
+gboolean add_view_rcpt (struct rspamd_view *view, char *line);
gboolean add_view_ip (struct rspamd_view *view, char *line);
gboolean add_view_client_ip (struct rspamd_view *view, char *line);
gboolean add_view_symbols (struct rspamd_view *view, char *line);