aboutsummaryrefslogtreecommitdiffstats
path: root/src/message.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-30 19:35:57 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-30 19:35:57 +0400
commitf579fed1dee306a5cf58360589d29ae1514d25b4 (patch)
treef5d5e288553d30fc617d06bf9e48ae919092f876 /src/message.c
parentdd2fbb7a5b7e1c0d844900147486ad7ffd98c1e4 (diff)
downloadrspamd-f579fed1dee306a5cf58360589d29ae1514d25b4.tar.gz
rspamd-f579fed1dee306a5cf58360589d29ae1514d25b4.zip
* Add 3 functions:
- is_recipients_sorted - has_only_html_part - compare_recipients_distance * Update documentation * Fix build
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/message.c b/src/message.c
index c35659366..156bd1829 100644
--- a/src/message.c
+++ b/src/message.c
@@ -406,6 +406,11 @@ process_message (struct worker_task *task)
memory_pool_add_destructor (task->task_pool, (pool_destruct_func)g_free, task->raw_headers);
}
+ task->rcpts = g_mime_message_get_all_recipients (message);
+ if (task->rcpts) {
+ memory_pool_add_destructor (task->task_pool, (pool_destruct_func)internet_address_list_destroy, task->rcpts);
+ }
+
task->worker->srv->stat->messages_scanned ++;
/* free the parser (and the stream) */