aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_parser.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-02-23 16:08:24 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-02-23 16:08:24 +0000
commit2237481903caa32c1b5d5042aaaca0f5ce11e0f1 (patch)
tree5ba61b5cd001e363c4a8e4f29334dd4d7632b184 /src/libmime/mime_parser.c
parent0befc8068f59f4e2c34811fdb898b6ff21da3fd4 (diff)
downloadrspamd-2237481903caa32c1b5d5042aaaca0f5ce11e0f1.tar.gz
rspamd-2237481903caa32c1b5d5042aaaca0f5ce11e0f1.zip
[Project] Rework API for the modified headers
Diffstat (limited to 'src/libmime/mime_parser.c')
-rw-r--r--src/libmime/mime_parser.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c
index e74201f27..0d6659867 100644
--- a/src/libmime/mime_parser.c
+++ b/src/libmime/mime_parser.c
@@ -392,7 +392,7 @@ rspamd_mime_part_get_cte (struct rspamd_task *task,
enum rspamd_cte cte = RSPAMD_CTE_UNKNOWN;
gboolean parent_propagated = FALSE;
- hdr = rspamd_message_get_header_from_hash (hdrs, "Content-Transfer-Encoding");
+ hdr = rspamd_message_get_header_from_hash(hdrs, "Content-Transfer-Encoding", FALSE);
if (hdr == NULL) {
if (part->parent_part && part->parent_part->cte != RSPAMD_CTE_UNKNOWN &&
@@ -471,8 +471,8 @@ rspamd_mime_part_get_cd (struct rspamd_task *task, struct rspamd_mime_part *part
rspamd_ftok_t srch;
struct rspamd_content_type_param *found;
- hdr = rspamd_message_get_header_from_hash (part->raw_headers,
- "Content-Disposition");
+ hdr = rspamd_message_get_header_from_hash(part->raw_headers,
+ "Content-Disposition", FALSE);
if (hdr == NULL) {
@@ -859,8 +859,8 @@ rspamd_mime_process_multipart_node (struct rspamd_task *task,
}
}
- hdr = rspamd_message_get_header_from_hash (npart->raw_headers,
- "Content-Type");
+ hdr = rspamd_message_get_header_from_hash(npart->raw_headers,
+ "Content-Type", FALSE);
}
else {
@@ -1402,9 +1402,9 @@ rspamd_mime_parse_message (struct rspamd_task *task,
}
}
- hdr = rspamd_message_get_header_from_hash (
+ hdr = rspamd_message_get_header_from_hash(
MESSAGE_FIELD (task, raw_headers),
- "Content-Type");
+ "Content-Type", FALSE);
}
else {
/* First apply heuristic, maybe we have just headers */
@@ -1432,9 +1432,9 @@ rspamd_mime_parse_message (struct rspamd_task *task,
}
}
- hdr = rspamd_message_get_header_from_hash (
+ hdr = rspamd_message_get_header_from_hash(
MESSAGE_FIELD (task, raw_headers),
- "Content-Type");
+ "Content-Type", FALSE);
task->flags |= RSPAMD_TASK_FLAG_BROKEN_HEADERS;
}
else {
@@ -1488,8 +1488,8 @@ rspamd_mime_parse_message (struct rspamd_task *task,
}
}
- hdr = rspamd_message_get_header_from_hash (npart->raw_headers,
- "Content-Type");
+ hdr = rspamd_message_get_header_from_hash(npart->raw_headers,
+ "Content-Type", FALSE);
}
else {
body_pos = 0;