Skip to content

Commit

Permalink
lib-imap: imap_write_envelope changed to skip CRs and LFs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey-Kitov authored and GitLab committed Jun 15, 2017
1 parent be0c992 commit 0b9eda8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib-imap/imap-envelope.c
Expand Up @@ -55,7 +55,7 @@ void imap_envelope_write(struct message_part_envelope *data,
return;
}

imap_append_nstring(str, data->date);
imap_append_nstring_nolf(str, data->date);
str_append_c(str, ' ');
if (data->subject == NULL)
str_append(str, "NIL");
Expand All @@ -79,9 +79,9 @@ void imap_envelope_write(struct message_part_envelope *data,
imap_write_address(str, data->bcc);

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

/*
Expand Down

0 comments on commit 0b9eda8

Please sign in to comment.