Forwarding this to the list.  I've changed the mailman settings to 
moderate rather than bounce non-subscriber mails again.

----- Forwarded message from Robert Scheck <[EMAIL PROTECTED]> -----

Date: Tue, 23 May 2006 17:47:52 +0200
From: Robert Scheck <[EMAIL PROTECTED]>
To: [email protected]
Subject: IDN support in neon
Message-ID: <[EMAIL PROTECTED]>
User-Agent: Mutt/1.5.11

Hello everybody,

when RPM 4.4.7 (devel) got IDN support (umlaut domains), I recognized that
neon currently has no IDN support and wrote a small patch attached to this
e-mail. I don't know whether it is sane enough, but it just works here for
about two months now.

FYI: glibc >= 2.3.3 is providing the AI_IDN flag, Fedora Core Development
is building glibc with IDN support per default since it is available.


Greetings,
  Robert


Patch by Robert Scheck <[EMAIL PROTECTED]> for neon >= 0.25.5, which adds
IDN support (umlaut domains).

--- neon-0.25.5/src/ne_socket.c                 2005-08-19 11:40:16.000000000 
+0200
+++ neon-0.25.5/src/ne_socket.c.idn             2006-05-23 17:35:06.000000000 
+0200
@@ -791,6 +791,9 @@
        hn[pnt - hostname - 1] = '\0';
 #ifdef AI_NUMERICHOST /* added in the RFC2553 API */
        hints.ai_flags = AI_NUMERICHOST;
+#if defined(AI_IDN)
+       hints.ai_flags |= AI_IDN;
+#endif
 #endif
         hints.ai_family = AF_INET6;
        addr->errnum = getaddrinfo(hn, NULL, &hints, &addr->result);
@@ -798,6 +801,9 @@
     } else {
 #ifdef USE_GAI_ADDRCONFIG /* added in the RFC3493 API */
         hints.ai_flags = AI_ADDRCONFIG;
+#if defined(AI_IDN)
+       hints.ai_flags |= AI_IDN;
+#endif
         hints.ai_family = AF_UNSPEC;
         addr->errnum = getaddrinfo(hostname, NULL, &hints, &addr->result);
 #else
----- End forwarded message -----


With kind regards

Robert Scheck

----- End forwarded message -----
_______________________________________________
neon mailing list
[email protected]
http://mailman.webdav.org/mailman/listinfo/neon

Reply via email to