[dovecot-cvs] dovecot/src/pop3 commands.c,1.7,1.8

cras at procontrol.fi cras at procontrol.fi
Tue May 27 11:13:45 EEST 2003


Update of /home/cvs/dovecot/src/pop3
In directory danu:/tmp/cvs-serv7777

Modified Files:
	commands.c 
Log Message:
If mail didn't end with linefeed, we sent it wrong.



Index: commands.c
===================================================================
RCS file: /home/cvs/dovecot/src/pop3/commands.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- commands.c	1 Feb 2003 11:44:40 -0000	1.7
+++ commands.c	27 May 2003 07:13:42 -0000	1.8
@@ -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,



More information about the dovecot-cvs mailing list