From 39c853952b97d56726839e6e5681cd7e1849c364 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 30 Jan 2015 15:19:04 +0000 Subject: Rework message store to allow encryption. --- src/libserver/task.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/libserver/task.h') diff --git a/src/libserver/task.h b/src/libserver/task.h index 9702befa5..43349ffa9 100644 --- a/src/libserver/task.h +++ b/src/libserver/task.h @@ -93,7 +93,10 @@ struct rspamd_task { gchar *hostname; /**< hostname reported by MTA */ GHashTable *request_headers; /**< HTTP headers in a request */ GHashTable *reply_headers; /**< Custom reply headers */ - GString *msg; /**< message buffer */ + struct { + const gchar *start; + gsize len; + } msg; /**< message buffer */ struct rspamd_http_connection *http_conn; /**< HTTP server connection */ struct rspamd_async_session * s; /**< async session object */ gint parts_count; /**< mime parts count */ @@ -181,7 +184,8 @@ gboolean rspamd_task_fin (void *arg); * @return task has been successfully parsed and processed */ gboolean rspamd_task_process (struct rspamd_task *task, - struct rspamd_http_message *msg, GThreadPool *classify_pool, + struct rspamd_http_message *msg, const gchar *start, gsize len, + GThreadPool *classify_pool, gboolean process_extra_filters); /** -- cgit v1.2.3