aboutsummaryrefslogtreecommitdiffstats
path: root/src/message.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-21 20:39:22 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-21 20:39:22 +0300
commitf1c0e2b78d3bc798c9083e004b2c49d939f417df (patch)
treeca7fc586cfe1683adcb6557ecf4d67d2a5520d7d /src/message.h
parenteb5a3b77490bbe2d03f4a87cfb02507f3c79614c (diff)
downloadrspamd-f1c0e2b78d3bc798c9083e004b2c49d939f417df.tar.gz
rspamd-f1c0e2b78d3bc798c9083e004b2c49d939f417df.zip
* Process raw headers by FSM.
* Add methods for accessing raw_headers from lua and C
Diffstat (limited to 'src/message.h')
-rw-r--r--src/message.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/message.h b/src/message.h
index a57571987..e5859738a 100644
--- a/src/message.h
+++ b/src/message.h
@@ -45,6 +45,12 @@ struct received_header {
gint is_error;
};
+struct raw_header {
+ gchar *name;
+ gchar *value;
+ gboolean tab_separated;
+};
+
/**
* Process message with all filters/statfiles, extract mime parts, urls and
* call metrics consolidation functions
@@ -55,5 +61,6 @@ gint process_message (struct worker_task *task);
void message_set_header (GMimeMessage *message, const gchar *field, const gchar *value);
GList* message_get_header (memory_pool_t *pool, GMimeMessage *message, const gchar *field, gboolean strong);
+GList* message_get_raw_header (struct worker_task *task, const gchar *field, gboolean strong);
#endif