diff options
| author | Stefan Monnier | 2008-03-14 14:37:22 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-03-14 14:37:22 +0000 |
| commit | 31fe2b00d9ea2e8f96b009e0e34619bf07d2280e (patch) | |
| tree | 66d7e2e5076e3875acaf8ba92c001664fd30aa96 | |
| parent | 23e330700e79452a0860705599aa86dd195702eb (diff) | |
| download | emacs-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/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/misc/gnus.texi | 109 |
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 @@ | |||
| 1 | 2008-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 | |||
| 1 | 2008-03-13 Carsten Dominik <dominik@science.uva.nl> | 7 | 2008-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 | ||
| 13028 | If you are behind a firewall and only have access to the @acronym{NNTP} | 13028 | If you are behind a firewall and only have access to the @acronym{NNTP} |
| 13029 | server from the firewall machine, you can instruct Gnus to @code{rlogin} | 13029 | server from the firewall machine, you can instruct Gnus to @code{rlogin} |
| 13030 | on the firewall machine and telnet from there to the @acronym{NNTP} server. | 13030 | on the firewall machine and connect with |
| 13031 | @uref{http://netcat.sourceforge.net/, netcat} from there to the | ||
| 13032 | @acronym{NNTP} server. | ||
| 13031 | Doing this can be rather fiddly, but your virtual server definition | 13033 | Doing this can be rather fiddly, but your virtual server definition |
| 13032 | should probably look something like this: | 13034 | should 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 | ||
| 13042 | If you want to use the wonderful @code{ssh} program to provide a | 13043 | If 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 | ||
| 13064 | If you're behind a firewall, but have direct access to the outside world | 13064 | If you're behind a firewall, but have direct access to the outside world |
| 13065 | through a wrapper command like "runsocks", you could open a socksified | 13065 | through a wrapper command like "runsocks", you could open a socksified |
| 13066 | telnet connection to the news server as follows: | 13066 | netcat 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 | ||
| 13076 | This means that you have to have set up @code{ssh-agent} correctly to | 13075 | This 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 |
| 13549 | Opens a connection to an @acronym{NNTP} server by simply @samp{telnet}'ing | 13548 | Opens a connection to an @acronym{NNTP} server using the @code{netcat} |
| 13550 | it. You might wonder why this function exists, since we have the | 13549 | program. You might wonder why this function exists, since we have |
| 13551 | default @code{nntp-open-network-stream} which would do the job. (One | 13550 | the default @code{nntp-open-network-stream} which would do the job. (One |
| 13552 | of) the reason(s) is that if you are behind a firewall but have direct | 13551 | of) the reason(s) is that if you are behind a firewall but have direct |
| 13553 | connections to the outside world thanks to a command wrapper like | 13552 | connections 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 | ||
| 13563 | With the default method, you would need to wrap your whole Emacs | 13562 | With the default method, you would need to wrap your whole Emacs |
| 13564 | session, which is not a good idea. | 13563 | session, which is not a good idea. |
| 13564 | |||
| 13565 | @findex nntp-open-telnet-stream | ||
| 13566 | @item nntp-open-telnet-stream | ||
| 13567 | Like @code{nntp-open-via-netcat}, but uses @code{telnet} rather than | ||
| 13568 | @code{netcat}. @code{telnet} is a bit less robust because of things | ||
| 13569 | like line-end-conversion, but sometimes netcat is simply | ||
| 13570 | not 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 | |||
| 13577 | commonly understood variables (@pxref{Common Variables}). | 13591 | commonly 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 |
| 13582 | Does an @samp{rlogin} on a remote system, and then does a @samp{telnet} | 13596 | Does an @samp{rlogin} on a remote system, and then uses @code{netcat} to connect |
| 13583 | to the real @acronym{NNTP} server from there. This is useful for instance if | 13597 | to the real @acronym{NNTP} server from there. This is useful for instance if |
| 13584 | you need to connect to a firewall machine first. | 13598 | you 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 | |||
| 13596 | List of strings to be used as the switches to | 13610 | List 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. |
| 13600 | this to @samp{("-t" "-e" "none")} or @samp{("-C" "-t" "-e" "none")} if | ||
| 13601 | the telnet command requires a pseudo-tty allocation on an intermediate | ||
| 13602 | host. | ||
| 13603 | @end table | 13614 | @end table |
| 13604 | 13615 | ||
| 13605 | Note that you may want to change the value for @code{nntp-end-of-line} | 13616 | @item nntp-open-via-rlogin-and-telnet |
| 13606 | to @samp{\n} (@pxref{Common Variables}). | 13617 | @findex nntp-open-via-rlogin-and-telnet |
| 13607 | 13618 | Does 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 | ||
| 13610 | Does essentially the same, but uses | ||
| 13611 | @uref{http://netcat.sourceforge.net/, netcat} instead of @samp{telnet} | ||
| 13612 | to connect to the real @acronym{NNTP} server from the intermediate host. | 13619 | to connect to the real @acronym{NNTP} server from the intermediate host. |
| 13620 | @code{telnet} is a bit less robust because of things like | ||
| 13621 | line-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 |
| 13619 | Command used to connect to the real @acronym{NNTP} server from the | 13628 | Command used to connect to the real @acronym{NNTP} server from the |
| 13620 | intermediate host. The default is @samp{nc}. You can also use other | 13629 | intermediate host. The default is @samp{nc}. You can also use other |
| 13621 | programs like @uref{http://www.imasy.or.jp/~gotoh/ssh/connect.html, | 13630 | programs like @uref{http://www.imasy.or.jp/~gotoh/ssh/connect.html, |
| 13622 | connect} instead. | 13631 | connect} 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 |
| 13626 | List of strings to be used as the switches to the | 13635 | List 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 |
| 13636 | List of strings to be used as the switches to | 13645 | List 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 |
| 13647 | this to @samp{("-t" "-e" "none")} or @samp{("-C" "-t" "-e" "none")} if | ||
| 13648 | the telnet command requires a pseudo-tty allocation on an intermediate | ||
| 13649 | host. The default is @code{nil}. | ||
| 13638 | @end table | 13650 | @end table |
| 13639 | 13651 | ||
| 13652 | Note that you may want to change the value for @code{nntp-end-of-line} | ||
| 13653 | to @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 |
| 13642 | Does essentially the same, but uses @samp{telnet} instead of | 13657 | Does 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} | |||
| 13730 | server. This is @samp{\r\n} by default, but should be @samp{\n} when | 13745 | server. This is @samp{\r\n} by default, but should be @samp{\n} when |
| 13731 | using a non native telnet connection function. | 13746 | using 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 |
| 13735 | Command to use when connecting to the @acronym{NNTP} server through | 13750 | Command 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 |
| 13737 | just for the real @acronym{NNTP} server. The default is | 13752 | just 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 |
| 13742 | A list of switches to pass to @code{nntp-telnet-command}. The default | 13757 | A list of switches to pass to @code{nntp-via-netcat-command}. The default |
| 13743 | is @samp{("-8")}. | 13758 | is @samp{()}. |
| 13744 | 13759 | ||
| 13745 | @end table | 13760 | @end table |
| 13746 | 13761 | ||