From: Timo Sirainen Date: Tue, 27 May 2003 07:13:42 +0000 (+0300) Subject: If mail didn't end with linefeed, we sent it wrong. X-Git-Tag: 1.1.alpha1~4599 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fe1f6150a797a29ec52660a0510226183808a9c;p=thirdparty%2Fdovecot%2Fcore.git If mail didn't end with linefeed, we sent it wrong. --HG-- branch : HEAD --- diff --git a/src/pop3/commands.c b/src/pop3/commands.c index e466af5a76..1cfe0596ff 100644 --- a/src/pop3/commands.c +++ b/src/pop3/commands.c @@ -264,6 +264,11 @@ static void stream_send_escaped(struct ostream *output, struct istream *input, i_stream_skip(input, i); } + + if (last != '\n') { + /* didn't end with CRLF */ + (void)o_stream_send(output, "\r\n", 2); + } } static void fetch(struct client *client, unsigned int msgnum,