[dovecot-cvs] dovecot/src/pop3 commands.c, 1.34, 1.35 common.h, 1.5, 1.6 main.c, 1.17, 1.18

cras at dovecot.org cras at dovecot.org
Tue Dec 7 03:19:13 EET 2004


Update of /var/lib/cvs/dovecot/src/pop3
In directory talvi:/tmp/cvs-serv15455/src/pop3

Modified Files:
	commands.c common.h main.c 
Log Message:
Added oe-ns-eoh workaround.



Index: commands.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3/commands.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- commands.c	4 Dec 2004 19:46:59 -0000	1.34
+++ commands.c	7 Dec 2004 01:19:10 -0000	1.35
@@ -328,6 +328,11 @@
 		(void)o_stream_send(client->output, "\r\n", 2);
 	}
 
+	if (!ctx->in_body && (client_workarounds & WORKAROUND_OE_NS_EOH) != 0) {
+		/* Add the missing end of headers line. */
+		(void)o_stream_send(client->output, "\r\n", 2);
+	}
+
 	client_send_line(client, ".");
 	fetch_deinit(ctx);
 	client->cmd = NULL;

Index: common.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3/common.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- common.h	10 Oct 2004 14:32:33 -0000	1.5
+++ common.h	7 Dec 2004 01:19:10 -0000	1.6
@@ -5,7 +5,8 @@
 #include "client.h"
 
 enum client_workarounds {
-	WORKAROUND_OUTLOOK_NO_NULS		= 0x01
+	WORKAROUND_OUTLOOK_NO_NULS		= 0x01,
+	WORKAROUND_OE_NS_EOH			= 0x02
 };
 
 extern struct ioloop *ioloop;

Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3/main.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- main.c	9 Nov 2004 16:54:34 -0000	1.17
+++ main.c	7 Dec 2004 01:19:10 -0000	1.18
@@ -26,6 +26,7 @@
 
 struct client_workaround_list client_workaround_list[] = {
 	{ "outlook-no-nuls", WORKAROUND_OUTLOOK_NO_NULS },
+	{ "oe-ns-eoh", WORKAROUND_OE_NS_EOH },
 	{ NULL, 0 }
 };
 



More information about the dovecot-cvs mailing list