diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-02-23 16:08:24 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-02-23 16:08:24 +0000 |
commit | 2237481903caa32c1b5d5042aaaca0f5ce11e0f1 (patch) | |
tree | 5ba61b5cd001e363c4a8e4f29334dd4d7632b184 /src/libmime/mime_headers.h | |
parent | 0befc8068f59f4e2c34811fdb898b6ff21da3fd4 (diff) | |
download | rspamd-2237481903caa32c1b5d5042aaaca0f5ce11e0f1.tar.gz rspamd-2237481903caa32c1b5d5042aaaca0f5ce11e0f1.zip |
[Project] Rework API for the modified headers
Diffstat (limited to 'src/libmime/mime_headers.h')
-rw-r--r-- | src/libmime/mime_headers.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libmime/mime_headers.h b/src/libmime/mime_headers.h index f01a8b649..ad8f1b68f 100644 --- a/src/libmime/mime_headers.h +++ b/src/libmime/mime_headers.h @@ -52,6 +52,7 @@ enum rspamd_mime_header_flags { RSPAMD_HEADER_MODIFIED = 1u << 15u, /* Means we need to check modified chain */ RSPAMD_HEADER_ADDED = 1u << 16u, /* A header has been artificially added */ RSPAMD_HEADER_REMOVED = 1u << 17u, /* A header has been artificially removed */ + RSPAMD_HEADER_NON_EXISTING = 1u << 18u, /* Header was not in the original message */ }; struct rspamd_mime_header { @@ -164,7 +165,8 @@ gchar *rspamd_mime_message_id_generate (const gchar *fqdn); */ struct rspamd_mime_header * rspamd_message_get_header_array (struct rspamd_task *task, - const gchar *field); + const gchar *field, + gboolean need_modified); /** * Get an array of header's values with specified header's name using raw headers @@ -174,7 +176,8 @@ rspamd_message_get_header_array (struct rspamd_task *task, */ struct rspamd_mime_header * rspamd_message_get_header_from_hash (struct rspamd_mime_headers_table *hdrs, - const gchar *field); + const gchar *field, + gboolean need_modified); /** * Modifies a header (or insert one if not found) |