aboutsummaryrefslogtreecommitdiffstats
path: root/main.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2008-08-19 19:46:10 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2008-08-19 19:46:10 +0400
commit86fd197a95f72d09e5cccbc059829ff5f6b03b87 (patch)
tree5c6ca0c98bde0b2a6703f30283ba33bb393fc7b8 /main.h
parent4fcd073731ec81987c662e04b480846634e71c59 (diff)
downloadrspamd-86fd197a95f72d09e5cccbc059829ff5f6b03b87.tar.gz
rspamd-86fd197a95f72d09e5cccbc059829ff5f6b03b87.zip
* Add initial implementation of rspamd XS module
Diffstat (limited to 'main.h')
-rw-r--r--main.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/main.h b/main.h
index e263b9521..b2441bbe7 100644
--- a/main.h
+++ b/main.h
@@ -22,6 +22,9 @@
#include "fstring.h"
#include "url.h"
+#include <glib.h>
+#include <gmime/gmime.h>
+
/* Default values */
#define FIXED_CONFIG_FILE "./rspamd.conf"
/* Time in seconds to exit for old worker */
@@ -74,6 +77,12 @@ struct filter_result {
TAILQ_ENTRY (filter_result) next;
};
+struct mime_part {
+ GMimeContentType *type;
+ GByteArray *content;
+ TAILQ_ENTRY (mime_part) next;
+};
+
struct worker_task {
struct rspamd_worker *worker;
enum {
@@ -93,6 +102,10 @@ struct worker_task {
struct bufferevent *bev;
/* Number of mime parts */
int parts_count;
+ /* Headers */
+ GMimeMessage *message;
+ /* All parts of message */
+ TAILQ_HEAD (mime_partq, mime_part) parts;
/* URLs extracted from message */
TAILQ_HEAD (uriq, uri) urls;
/* List of filter results */