]> git.pld-linux.org Git - packages/evolution.git/commitdiff
- conform to rfc2821 (http://bugzilla.ximian.com/show_bug.cgi?id=46006)
authorgrzegol <grzegol@pld-linux.org>
Thu, 20 Nov 2003 15:12:19 +0000 (15:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    evolution-ipv6_smtp.patch -> 1.1

evolution-ipv6_smtp.patch [new file with mode: 0644]

diff --git a/evolution-ipv6_smtp.patch b/evolution-ipv6_smtp.patch
new file mode 100644 (file)
index 0000000..b4f1386
--- /dev/null
@@ -0,0 +1,25 @@
+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.
+
+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
+--- camel/providers/smtp/camel-smtp-transport.c        16 May 2003 18:47:59 -0000      1.138
++++ camel/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
This page took 0.200817 seconds and 4 git commands to generate.