]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-imap: imap_bodystructure_write is changed to skip CRs and LFs.
authorSergey Kitov <sergey.kitov@open-xchange.com>
Wed, 14 Jun 2017 07:44:36 +0000 (10:44 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Fri, 16 Jun 2017 10:49:56 +0000 (13:49 +0300)
src/lib-imap/imap-bodystructure.c

index 9a707c0565b8803cb76448fe6ac0486cc0000185..ac627f4d6205a8051fe2a37475a64a9760425521 100644 (file)
@@ -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,
@@ -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);
@@ -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);
 }