diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-30 15:19:04 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-30 15:19:04 +0000 |
commit | 39c853952b97d56726839e6e5681cd7e1849c364 (patch) | |
tree | 500ec6cf01f380fb22308159c290e0901310d892 /src/libserver/task.h | |
parent | ef18538d25cc8e39fd0eb71424cecef516412d90 (diff) | |
download | rspamd-39c853952b97d56726839e6e5681cd7e1849c364.tar.gz rspamd-39c853952b97d56726839e6e5681cd7e1849c364.zip |
Rework message store to allow encryption.
Diffstat (limited to 'src/libserver/task.h')
-rw-r--r-- | src/libserver/task.h | 8 |
1 files changed, 6 insertions, 2 deletions
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); /** |