aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2008-03-14 14:37:22 +0000
committerStefan Monnier2008-03-14 14:37:22 +0000
commit31fe2b00d9ea2e8f96b009e0e34619bf07d2280e (patch)
tree66d7e2e5076e3875acaf8ba92c001664fd30aa96
parent23e330700e79452a0860705599aa86dd195702eb (diff)
downloademacs-31fe2b00d9ea2e8f96b009e0e34619bf07d2280e.tar.gz
emacs-31fe2b00d9ea2e8f96b009e0e34619bf07d2280e.zip
(Example Methods, Direct Functions, Indirect Functions)
(Common Variables): Give precedence to the netcat methods over the telnet methods, and mention that they are more reliable.
-rw-r--r--doc/misc/ChangeLog6
-rw-r--r--doc/misc/gnus.texi109
2 files changed, 68 insertions, 47 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 3f9288adb24..3971beb05b7 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,9 @@
12008-03-14 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * gnus.texi (Example Methods, Direct Functions, Indirect Functions)
4 (Common Variables): Give precedence to the netcat methods over the telnet
5 methods, and mention that they are more reliable.
6
12008-03-13 Carsten Dominik <dominik@science.uva.nl> 72008-03-13 Carsten Dominik <dominik@science.uva.nl>
2 8
3 * org.texi (Exporting Agenda Views): Document agenda export to 9 * org.texi (Exporting Agenda Views): Document agenda export to
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
index 28dd6a1da3f..3a9945c10b6 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -13027,16 +13027,17 @@ Here's the method for a public spool:
13027 13027
13028If you are behind a firewall and only have access to the @acronym{NNTP} 13028If you are behind a firewall and only have access to the @acronym{NNTP}
13029server from the firewall machine, you can instruct Gnus to @code{rlogin} 13029server from the firewall machine, you can instruct Gnus to @code{rlogin}
13030on the firewall machine and telnet from there to the @acronym{NNTP} server. 13030on the firewall machine and connect with
13031@uref{http://netcat.sourceforge.net/, netcat} from there to the
13032@acronym{NNTP} server.
13031Doing this can be rather fiddly, but your virtual server definition 13033Doing this can be rather fiddly, but your virtual server definition
13032should probably look something like this: 13034should probably look something like this:
13033 13035
13034@lisp 13036@lisp
13035(nntp "firewall" 13037(nntp "firewall"
13036 (nntp-open-connection-function nntp-open-via-rlogin-and-telnet) 13038 (nntp-open-connection-function nntp-open-via-rlogin-and-netcat)
13037 (nntp-via-address "the.firewall.machine") 13039 (nntp-via-address "the.firewall.machine")
13038 (nntp-address "the.real.nntp.host") 13040 (nntp-address "the.real.nntp.host"))
13039 (nntp-end-of-line "\n"))
13040@end lisp 13041@end lisp
13041 13042
13042If you want to use the wonderful @code{ssh} program to provide a 13043If you want to use the wonderful @code{ssh} program to provide a
@@ -13056,21 +13057,19 @@ an indirect connection:
13056 (nntp-via-user-name "intermediate_user_name") 13057 (nntp-via-user-name "intermediate_user_name")
13057 (nntp-via-address "intermediate.host.example") 13058 (nntp-via-address "intermediate.host.example")
13058 (nntp-via-rlogin-command "ssh") 13059 (nntp-via-rlogin-command "ssh")
13059 (nntp-end-of-line "\n") 13060 (nntp-via-rlogin-command-switches ("-C"))
13060 (nntp-via-rlogin-command-switches ("-C" "-t" "-e" "none")) 13061 (nntp-open-connection-function nntp-open-via-rlogin-and-netcat)))
13061 (nntp-open-connection-function nntp-open-via-rlogin-and-telnet)))
13062@end lisp 13062@end lisp
13063 13063
13064If you're behind a firewall, but have direct access to the outside world 13064If you're behind a firewall, but have direct access to the outside world
13065through a wrapper command like "runsocks", you could open a socksified 13065through a wrapper command like "runsocks", you could open a socksified
13066telnet connection to the news server as follows: 13066netcat connection to the news server as follows:
13067 13067
13068@lisp 13068@lisp
13069(nntp "outside" 13069(nntp "outside"
13070 (nntp-pre-command "runsocks") 13070 (nntp-pre-command "runsocks")
13071 (nntp-open-connection-function nntp-open-via-telnet) 13071 (nntp-open-connection-function nntp-open-via-netcat)
13072 (nntp-address "the.news.server") 13072 (nntp-address "the.news.server"))
13073 (nntp-end-of-line "\n"))
13074@end lisp 13073@end lisp
13075 13074
13076This means that you have to have set up @code{ssh-agent} correctly to 13075This means that you have to have set up @code{ssh-agent} correctly to
@@ -13544,11 +13543,11 @@ then define a server as follows:
13544 (nntp-address "snews.bar.com")) 13543 (nntp-address "snews.bar.com"))
13545@end lisp 13544@end lisp
13546 13545
13547@findex nntp-open-telnet-stream 13546@findex nntp-open-via-netcat
13548@item nntp-open-telnet-stream 13547@item nntp-open-via-netcat
13549Opens a connection to an @acronym{NNTP} server by simply @samp{telnet}'ing 13548Opens a connection to an @acronym{NNTP} server using the @code{netcat}
13550it. You might wonder why this function exists, since we have the 13549program. You might wonder why this function exists, since we have
13551default @code{nntp-open-network-stream} which would do the job. (One 13550the default @code{nntp-open-network-stream} which would do the job. (One
13552of) the reason(s) is that if you are behind a firewall but have direct 13551of) the reason(s) is that if you are behind a firewall but have direct
13553connections to the outside world thanks to a command wrapper like 13552connections to the outside world thanks to a command wrapper like
13554@code{runsocks}, you can use it like this: 13553@code{runsocks}, you can use it like this:
@@ -13556,12 +13555,27 @@ connections to the outside world thanks to a command wrapper like
13556@lisp 13555@lisp
13557(nntp "socksified" 13556(nntp "socksified"
13558 (nntp-pre-command "runsocks") 13557 (nntp-pre-command "runsocks")
13559 (nntp-open-connection-function nntp-open-telnet-stream) 13558 (nntp-open-connection-function nntp-open-via-netcat)
13560 (nntp-address "the.news.server")) 13559 (nntp-address "the.news.server"))
13561@end lisp 13560@end lisp
13562 13561
13563With the default method, you would need to wrap your whole Emacs 13562With the default method, you would need to wrap your whole Emacs
13564session, which is not a good idea. 13563session, which is not a good idea.
13564
13565@findex nntp-open-telnet-stream
13566@item nntp-open-telnet-stream
13567Like @code{nntp-open-via-netcat}, but uses @code{telnet} rather than
13568@code{netcat}. @code{telnet} is a bit less robust because of things
13569like line-end-conversion, but sometimes netcat is simply
13570not available. The previous example would turn into:
13571
13572@lisp
13573(nntp "socksified"
13574 (nntp-pre-command "runsocks")
13575 (nntp-open-connection-function nntp-open-telnet-stream)
13576 (nntp-address "the.news.server")
13577 (nntp-end-of-line "\n"))
13578@end lisp
13565@end table 13579@end table
13566 13580
13567 13581
@@ -13577,13 +13591,13 @@ things cleaner. The behavior of these functions is also affected by
13577commonly understood variables (@pxref{Common Variables}). 13591commonly understood variables (@pxref{Common Variables}).
13578 13592
13579@table @code 13593@table @code
13580@item nntp-open-via-rlogin-and-telnet 13594@item nntp-open-via-rlogin-and-netcat
13581@findex nntp-open-via-rlogin-and-telnet 13595@findex nntp-open-via-rlogin-and-netcat
13582Does an @samp{rlogin} on a remote system, and then does a @samp{telnet} 13596Does an @samp{rlogin} on a remote system, and then uses @code{netcat} to connect
13583to the real @acronym{NNTP} server from there. This is useful for instance if 13597to the real @acronym{NNTP} server from there. This is useful for instance if
13584you need to connect to a firewall machine first. 13598you need to connect to a firewall machine first.
13585 13599
13586@code{nntp-open-via-rlogin-and-telnet}-specific variables: 13600@code{nntp-open-via-rlogin-and-netcat}-specific variables:
13587 13601
13588@table @code 13602@table @code
13589@item nntp-via-rlogin-command 13603@item nntp-via-rlogin-command
@@ -13596,35 +13610,30 @@ Command used to log in on the intermediate host. The default is
13596List of strings to be used as the switches to 13610List of strings to be used as the switches to
13597@code{nntp-via-rlogin-command}. The default is @code{nil}. If you use 13611@code{nntp-via-rlogin-command}. The default is @code{nil}. If you use
13598@samp{ssh} for @code{nntp-via-rlogin-command}, you may set this to 13612@samp{ssh} for @code{nntp-via-rlogin-command}, you may set this to
13599@samp{("-C")} in order to compress all data connections, otherwise set 13613@samp{("-C")} in order to compress all data connections.
13600this to @samp{("-t" "-e" "none")} or @samp{("-C" "-t" "-e" "none")} if
13601the telnet command requires a pseudo-tty allocation on an intermediate
13602host.
13603@end table 13614@end table
13604 13615
13605Note that you may want to change the value for @code{nntp-end-of-line} 13616@item nntp-open-via-rlogin-and-telnet
13606to @samp{\n} (@pxref{Common Variables}). 13617@findex nntp-open-via-rlogin-and-telnet
13607 13618Does essentially the same, but uses @code{telnet} instead of @samp{netcat}
13608@item nntp-open-via-rlogin-and-netcat
13609@findex nntp-open-via-rlogin-and-netcat
13610Does essentially the same, but uses
13611@uref{http://netcat.sourceforge.net/, netcat} instead of @samp{telnet}
13612to connect to the real @acronym{NNTP} server from the intermediate host. 13619to connect to the real @acronym{NNTP} server from the intermediate host.
13620@code{telnet} is a bit less robust because of things like
13621line-end-conversion, but sometimes @code{netcat} is simply not available.
13613 13622
13614@code{nntp-open-via-rlogin-and-netcat}-specific variables: 13623@code{nntp-open-via-rlogin-and-telnet}-specific variables:
13615 13624
13616@table @code 13625@table @code
13617@item nntp-via-netcat-command 13626@item nntp-telnet-command
13618@vindex nntp-via-netcat-command 13627@vindex nntp-telnet-command
13619Command used to connect to the real @acronym{NNTP} server from the 13628Command used to connect to the real @acronym{NNTP} server from the
13620intermediate host. The default is @samp{nc}. You can also use other 13629intermediate host. The default is @samp{nc}. You can also use other
13621programs like @uref{http://www.imasy.or.jp/~gotoh/ssh/connect.html, 13630programs like @uref{http://www.imasy.or.jp/~gotoh/ssh/connect.html,
13622connect} instead. 13631connect} instead.
13623 13632
13624@item nntp-via-netcat-switches 13633@item nntp-telnet-switches
13625@vindex nntp-via-netcat-switches 13634@vindex nntp-telnet-switches
13626List of strings to be used as the switches to the 13635List of strings to be used as the switches to the
13627@code{nntp-via-telnet-command} command. The default is @code{nil}. 13636@code{nntp-telnet-command} command. The default is @code{("-8")}.
13628 13637
13629@item nntp-via-rlogin-command 13638@item nntp-via-rlogin-command
13630@vindex nntp-via-rlogin-command 13639@vindex nntp-via-rlogin-command
@@ -13634,9 +13643,15 @@ Command used to log in on the intermediate host. The default is
13634@item nntp-via-rlogin-command-switches 13643@item nntp-via-rlogin-command-switches
13635@vindex nntp-via-rlogin-command-switches 13644@vindex nntp-via-rlogin-command-switches
13636List of strings to be used as the switches to 13645List of strings to be used as the switches to
13637@code{nntp-via-rlogin-command}. The default is @code{nil}. 13646@code{nntp-via-rlogin-command}. If you use @samp{ssh}, you may need to set
13647this to @samp{("-t" "-e" "none")} or @samp{("-C" "-t" "-e" "none")} if
13648the telnet command requires a pseudo-tty allocation on an intermediate
13649host. The default is @code{nil}.
13638@end table 13650@end table
13639 13651
13652Note that you may want to change the value for @code{nntp-end-of-line}
13653to @samp{\n} (@pxref{Common Variables}).
13654
13640@item nntp-open-via-telnet-and-telnet 13655@item nntp-open-via-telnet-and-telnet
13641@findex nntp-open-via-telnet-and-telnet 13656@findex nntp-open-via-telnet-and-telnet
13642Does essentially the same, but uses @samp{telnet} instead of 13657Does essentially the same, but uses @samp{telnet} instead of
@@ -13730,17 +13745,17 @@ String to use as end-of-line marker when talking to the @acronym{NNTP}
13730server. This is @samp{\r\n} by default, but should be @samp{\n} when 13745server. This is @samp{\r\n} by default, but should be @samp{\n} when
13731using a non native telnet connection function. 13746using a non native telnet connection function.
13732 13747
13733@item nntp-telnet-command 13748@item nntp-via-netcat-command
13734@vindex nntp-telnet-command 13749@vindex nntp-via-netcat-command
13735Command to use when connecting to the @acronym{NNTP} server through 13750Command to use when connecting to the @acronym{NNTP} server through
13736@samp{telnet}. This is @emph{not} for an intermediate host. This is 13751@samp{netcat}. This is @emph{not} for an intermediate host. This is
13737just for the real @acronym{NNTP} server. The default is 13752just for the real @acronym{NNTP} server. The default is
13738@samp{telnet}. 13753@samp{nc}.
13739 13754
13740@item nntp-telnet-switches 13755@item nntp-via-netcat-switches
13741@vindex nntp-telnet-switches 13756@vindex nntp-via-netcat-switches
13742A list of switches to pass to @code{nntp-telnet-command}. The default 13757A list of switches to pass to @code{nntp-via-netcat-command}. The default
13743is @samp{("-8")}. 13758is @samp{()}.
13744 13759
13745@end table 13760@end table
13746 13761