[evolution-patches] fix for bug #46006, need to prefix IPv6 numeric host addrs with "IPv6:" in SMTP EHLO command



-- 
Jeffrey Stedfast
Evolution Hacker - Ximian, Inc.
fejj ximian com  - www.ximian.com
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/camel/ChangeLog,v
retrieving revision 1.1836.2.14
diff -u -r1.1836.2.14 ChangeLog
--- ChangeLog	23 Sep 2003 01:01:05 -0000	1.1836.2.14
+++ ChangeLog	25 Sep 2003 14:44:06 -0000
@@ -1,3 +1,14 @@
+2003-09-25  Jeffrey Stedfast  <fejj ximian com>
+
+	* providers/smtp/camel-smtp-transport.c (smtp_helo): If the
+	localhost lookup results in a numeric IPv6 host, use the form
+	"[IPv6:<addr>]" as specified in rfc2821. Fixes bug #46006.
+
+2003-09-23  Jeffrey Stedfast  <fejj ximian com>
+
+	* camel-mime-utils.c (append_8bit): Don't forget to flush the
+	iconv conversion.
+
 2003-09-22  Not Zed  <NotZed Ximian com>
 
 	** See bug #41610
Index: providers/smtp/camel-smtp-transport.c
===================================================================
RCS file: /cvs/gnome/evolution/camel/providers/smtp/camel-smtp-transport.c,v
retrieving revision 1.138
diff -u -r1.138 camel-smtp-transport.c
--- providers/smtp/camel-smtp-transport.c	16 May 2003 18:47:59 -0000	1.138
+++ providers/smtp/camel-smtp-transport.c	25 Sep 2003 14:44:07 -0000
@@ -896,8 +896,10 @@
 	} else {
 #ifdef ENABLE_IPv6
 		char ip[MAXHOSTNAMELEN + 1];
+		const char *proto;
 		
-		name = g_strdup_printf ("[%s]", inet_ntop (af, transport->localaddr->address, ip, MAXHOSTNAMELEN));
+		proto = transport->localaddr->family == CAMEL_TCP_ADDRESS_IPv6 ? "IPv6:" : "";
+		name = g_strdup_printf ("[%s%s]", proto, inet_ntop (af, transport->localaddr->address, ip, MAXHOSTNAMELEN));
 #else
 		/* We *could* use inet_ntoa() here, but it's probably
 		   not worth it since we would have to worry about


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]