Skip to content

Commit

Permalink
lib-imap: imap_bodystructure_write is changed to skip CRs and LFs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey-Kitov authored and villesavolainen committed Jun 16, 2017
1 parent 1618fcb commit a8f6bbf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib-imap/imap-bodystructure.c
Expand Up @@ -105,7 +105,7 @@ part_write_bodystructure_common(const struct message_part_data *data,
}

str_append_c(str, ' ');
imap_append_nstring(str, data->content_location);
imap_append_nstring_nolf(str, data->content_location);
}

static void part_write_body_multipart(const struct message_part *part,
Expand Down Expand Up @@ -183,9 +183,9 @@ static void part_write_body(const struct message_part *part,
data->content_type_params_count, str, text);

str_append_c(str, ' ');
imap_append_nstring(str, data->content_id);
imap_append_nstring_nolf(str, data->content_id);
str_append_c(str, ' ');
imap_append_nstring(str, data->content_description);
imap_append_nstring_nolf(str, data->content_description);
str_append_c(str, ' ');
if (data->content_transfer_encoding != NULL)
imap_append_string(str, data->content_transfer_encoding);
Expand Down Expand Up @@ -221,7 +221,7 @@ static void part_write_body(const struct message_part *part,
/* "md5" ("content disposition" ("disposition" "params"))
("body" "language" "params") "location" */
str_append_c(str, ' ');
imap_append_nstring(str, data->content_md5);
imap_append_nstring_nolf(str, data->content_md5);
part_write_bodystructure_common(data, str);
}

Expand Down

0 comments on commit a8f6bbf

Please sign in to comment.