From 788d69daa64652cd382aa58a2c8ac3cbdea9b6b1 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 11 Mar 2000 00:59:57 +0000 Subject: Better SOCKS5 support. svn path=/trunk/; revision=2815 --- NEWS | 1 + configure.in | 18 ++++++++++++++++++ fetchmail-FAQ.html | 28 +++++----------------------- 3 files changed, 24 insertions(+), 23 deletions(-) diff --git a/NEWS b/NEWS index ade9eebb..ea902dae 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,7 @@ (The `lines' figures total .c, .h, .l, and .y files under version control.) * Fixed reporting of listener timeouts. +* Configure now supports SOCKS5, thanks to Alan Schmitt. fetchmail-5.3.2 (Mon Mar 6 21:41:23 EST 2000), 18695 lines: diff --git a/configure.in b/configure.in index b25e9d0c..6e06e7d5 100644 --- a/configure.in +++ b/configure.in @@ -500,6 +500,24 @@ then LIBS="-lsocks $LIBS" fi]) +### use option --with-socks5=DIR to point at SOCKS library +AC_ARG_WITH(socks5, + [ --with-socks5[=DIR] add built-in SOCKS5 firewall access], +[ +if test "$with_socks5" != no +then + if test "$with_socks5" != yes + then + LDEFLAGS="$LDEFLAGS -L$with_socks5" + else + AC_CHECK_LIB(socks5, SOCKSconnect,, + AC_MSG_ERROR([could not find libsocks5 which is needed for built-in SOCKS5 support])) + fi + AC_DEFINE(HAVE_SOCKS) + CEFLAGS="$CEFLAGS -Dconnect=SOCKSconnect -Dgetsockname=SOCKSgetsockname -Dbind=SOCKSbind -Daccept=SOCKSaccept -Dlisten=SOCKSlisten -Dselect=SOCKSselect-Drecvfrom=SOCKSrecvfrom -Dsendto=SOCKSsendto -Drecv=SOCKSrecv -Dsend=SOCKSsend-Dread=SOCKSread -Dwrite=SOCKSwrite -Drresvport=SOCKSrresvport-Dshutdown=SOCKSshutdown -Dlisten=SOCKSlisten -Dclose=SOCKSclose -Ddup=SOCKSdup-Ddup2=SOCKSdup2 -Dfclose=SOCKSfclose -Dgethostbyname=SOCKSgethostbyname" + LIBS="-lsocks5 $LIBS" +fi]) + ### use option --with-hesiod=DIR to point at a HESIOD directory AC_ARG_WITH(hesiod, [ --with-hesiod=DIR point fetchmail compilation at a HESIOD directory]) diff --git a/fetchmail-FAQ.html b/fetchmail-FAQ.html index 62df7c01..0aa9c81f 100644 --- a/fetchmail-FAQ.html +++ b/fetchmail-FAQ.html @@ -10,7 +10,7 @@
Back to Fetchmail Home Page To Site Map -$Date: 2000/03/07 04:43:04 $ +$Date: 2000/03/11 00:59:57 $

Frequently Asked Questions About Fetchmail

@@ -1556,33 +1556,15 @@ RETR.


K1. How can I use fetchmail with SOCKS?

-Daniel Sobral <dcs@gns.com.br -gave us the following recipe:

- -

    -
  1. Install socks5. You don't need to have a socks server, you just - want the "runsocks" program. -
  2. Set the environment variable SOCKS_SERVER to the server you'll be - using. Alternatively, you may set SOCKS4_SERVER and/or - SOCKS5_SERVER. E.g.: -
    -	export SOCKS5_SERVER=socks.my.domain.com
    -
    -
  3. Set SOCKS5_USER and SOCKS5_PASSWD if needed. -
  4. Run fetchmail through runsocks. Just like this: -
    -	runsocks fetchmail [parameters to fetchmail]
    -
    -
- -It wasn't that hard, was it? :-)

- Giuseppe Guerini added a --with-socks option that supports linking with socks library. If you specify the value of this option as ``yes'', the configure script will try to find the Rconnect library and set the makefile up to link it. You can also specify a directory containing the Rconnect library.

+Alan Schmitt has added a similar --with-socks5 option that may work +better if you have a recent version of the SOCKS library. +


S7. How can I use fetchmail with geocities POP3 servers?

@@ -2759,7 +2741,7 @@ terminate it.

Back to Fetchmail Home Page To Site Map -$Date: 2000/03/07 04:43:04 $ +$Date: 2000/03/11 00:59:57 $

Eric S. Raymond <esr@snark.thyrsus.com>
-- cgit v1.2.3