Hi Eugene, I did a new patch to add support for whoson in the latest version of Courier- IMAP (2.0.0). As Edgardo (the guy who did the previous patch) is no longer working with me, I had to do it by myself :-( Anyway, standing on Edgardo's shoulders, this patch is a little more streamlined... with a bit of effort, it should be back-portable to previous Courier-IMAP versions (1.7.x). The sources modified are: imap/imapd.c imap/pop3dserver.c that is, the imapd and pop3d servers. I also modified these files: imap/configure.in imap/configure imap/Makefile.am imap/Makefile.in to ease the configuration steps. Having modified configure and Makefile.in (as well as configure.in and Makefile.am), it is no longer necessary to run automake autoheader autoconf but you can do it if you want to. The important thing is that whoson support is optional after patching, you enable at configuration time by using the following option to configure: --enable-whoson=PATH where PATH is the path where whoson is installed (if you don't add "=PATH" it will default to /usr/local/whoson) This patch no longer requires that you use --without-ipv6 when configuring Courier-IMAP, but this is only by means of a nasty kludge: if I see the remote address starts like "::ffff:", I erase the first 7 characters from it, translating it into a plain IPv4 address... I guess this will have to be it until whoson is IPv6 aware :-) Enjoy. -- Mariano Absatz El Baby ---------------------------------------------------------- All wiyht. Rho sritched mg kegtops awound?
courier-imap-whoson-2.0.0.patch