changeset 1507:1fad8b3d7ef1 HEAD

If mail didn't end with linefeed, we sent it wrong.
author Timo Sirainen <tss@iki.fi>
date Tue, 27 May 2003 10:13:42 +0300
parents e7c627bacaaf
children 64b8d6b2b457
files src/pop3/commands.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/pop3/commands.c	Mon May 26 18:26:29 2003 +0300
+++ b/src/pop3/commands.c	Tue May 27 10:13:42 2003 +0300
@@ -264,6 +264,11 @@
 
 		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,