aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/message.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-22 13:34:42 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-22 13:34:42 +0100
commit0209b1bc75c259c55f74797bf35b673833c0f3b8 (patch)
tree6defc43b895ecde8494bff9d066b78fcd62dab87 /src/libmime/message.h
parent0cdf354cb4424eae9bc1ccdec865e7435090ec83 (diff)
downloadrspamd-0209b1bc75c259c55f74797bf35b673833c0f3b8.tar.gz
rspamd-0209b1bc75c259c55f74797bf35b673833c0f3b8.zip
[CritFix] Plug memory leak in headers getting code
Diffstat (limited to 'src/libmime/message.h')
-rw-r--r--src/libmime/message.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/libmime/message.h b/src/libmime/message.h
index 367f0000c..4f8f27b0b 100644
--- a/src/libmime/message.h
+++ b/src/libmime/message.h
@@ -78,7 +78,7 @@ struct raw_header {
*/
gboolean rspamd_message_parse (struct rspamd_task *task);
-/*
+/**
* Get a list of header's values with specified header's name using raw headers
* @param task worker task structure
* @param field header's name
@@ -89,12 +89,26 @@ GList * rspamd_message_get_header (struct rspamd_task *task,
const gchar *field,
gboolean strong);
+/**
+ * Get an array of header's values with specified header's name using raw headers
+ * @param task worker task structure
+ * @param field header's name
+ * @param strong if this flag is TRUE header's name is case sensitive, otherwise it is not
+ * @return An array of header's values or NULL. It is NOT permitted to free array or values.
+ */
GPtrArray *rspamd_message_get_header_array (struct rspamd_task *task,
const gchar *field,
gboolean strong);
-
+/**
+ * Get an array of mime parts header's values with specified header's name using raw headers
+ * @param task worker task structure
+ * @param field header's name
+ * @param strong if this flag is TRUE header's name is case sensitive, otherwise it is not
+ * @return An array of header's values or NULL. It is NOT permitted to free array or values.
+ */
GPtrArray *rspamd_message_get_mime_header_array (struct rspamd_task *task,
const gchar *field,
gboolean strong);
+
#endif