]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
If mail didn't end with linefeed, we sent it wrong.
authorTimo Sirainen <tss@iki.fi>
Tue, 27 May 2003 07:13:42 +0000 (10:13 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 27 May 2003 07:13:42 +0000 (10:13 +0300)
--HG--
branch : HEAD

src/pop3/commands.c

index e466af5a765a8d5f0c32eede2577830af71c362d..1cfe0596ff2df250daaad47ffb4d749b275fd2ab 100644 (file)
@@ -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,