From 9fe1f6150a797a29ec52660a0510226183808a9c Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 27 May 2003 10:13:42 +0300 Subject: [PATCH] If mail didn't end with linefeed, we sent it wrong. --HG-- branch : HEAD --- src/pop3/commands.c | 5 +++++ 1 file changed, 5 insertions(+) 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, -- 2.47.3