aboutsummaryrefslogtreecommitdiffstats
path: root/src/message.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-17 12:25:23 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-17 12:25:23 +0300
commit8cc22288806b9ff7115cb8f30349029714e2d89a (patch)
treebc569c0dc56263b07906987ae22b8379cfb5325e /src/message.c
parentcfd2ff7bb58b81b7c0713b423a5b3397579610e7 (diff)
downloadrspamd-8cc22288806b9ff7115cb8f30349029714e2d89a.tar.gz
rspamd-8cc22288806b9ff7115cb8f30349029714e2d89a.zip
* Add ability to match raw headers
* Update documentation
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/message.c b/src/message.c
index 4780a11ff..76743f7de 100644
--- a/src/message.c
+++ b/src/message.c
@@ -371,6 +371,16 @@ process_message (struct worker_task *task)
task->message_id = "undef";
}
+#ifdef GMIME24
+ task->raw_headers = g_mime_object_get_headers (GMIME_OBJECT (task->message));
+#else
+ task->raw_headers = g_mime_message_get_headers (task->message);
+#endif
+
+ if (task->raw_headers) {
+ memory_pool_add_destructor (task->task_pool, (pool_destruct_func)g_free, task->raw_headers);
+ }
+
task->worker->srv->stat->messages_scanned ++;
/* free the parser (and the stream) */