aboutsummaryrefslogtreecommitdiffstats
path: root/main.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2008-06-11 18:34:33 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2008-06-11 18:34:33 +0400
commit7cd13c464ff3e025a0ce70302dede40a1b2d3f29 (patch)
tree06d94746e6e6c962ff77eeddc977d7a433a9a3f3 /main.h
parent25395e554edc13f457e48d5fdf69095b3dbe5e17 (diff)
downloadrspamd-7cd13c464ff3e025a0ce70302dede40a1b2d3f29.tar.gz
rspamd-7cd13c464ff3e025a0ce70302dede40a1b2d3f29.zip
* Add initial version of URLs parser (still need to make PCRE parse all pattern matches)
* Link with PCRE
Diffstat (limited to 'main.h')
-rw-r--r--main.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.h b/main.h
index 4c4a8aaac..425d219a4 100644
--- a/main.h
+++ b/main.h
@@ -18,6 +18,7 @@
#include <event.h>
#include "fstring.h"
+#include "url.h"
/* Default values */
#define FIXED_CONFIG_FILE "./rspamd.conf"
@@ -75,6 +76,10 @@ struct worker_task {
size_t content_length;
f_str_buf_t *msg;
struct bufferevent *bev;
+ /* Number of mime parts */
+ int parts_count;
+ /* URLs extracted from message */
+ TAILQ_HEAD (uriq, uri) urls;
};
void start_worker (struct rspamd_worker *worker, int listen_sock);