.TH fetchnews 8 "30 Oct 1995" "Troll Tech AS" \" -*- nroff -*- .\" .\" Written by Arnt Gulbrandsen and copyright 1995-96 Troll .\" Tech AS, Postboks 6133 Etterstad, 0602 Oslo, Norway, fax +47 22646949. .\" .\" Use, modification and distribution is allowed without limitation, .\" warranty, or liability of any kind. .\" .\" $Orig-Id: fetch.8,v 1.8 1997/07/08 23:09:08 agulbra Exp $ .\" .\" hilit19 is stupid: " .SH NAME fetchnews \- fetch news via NNTP .SH SYNOPSIS .B fetchnews [-v] [-f] [-x number] [-n] [-s [suck-file]] .SH DESCRIPTION .B Leafnode is a USENET package intended for small sites, where there are few users and little disk space, but where a large number of groups is desired. .PP The design of .B leafnode is intended to self-repair after problems, and to require no manual maintenance. .PP .B Fetchnews is the program which submits and retrieves new articles to or from the upstream NNTP server. .SH OPTIONS .TP .I -v Be verbose. A maximum of four .I -v can be used (the more v, the more verbose). Don't expect all the output to make sense. .TP .I -f Force fetchnews to retrive newsgroup list from each server. .TP .I "-x number" Go .I number articles back and try to re-fetch what's missing. Chiefly used for debugging purposes. .TP .I -n Write server's information file after fetching from each group, rather than updating it when fetchnews has finished with that server. It may help you if you are using unstable connection and get problems of sudden disconnection. I guess current fetchnews doesn't need this option because codes are changed to check sudden disconnection, but I'm not sure, so I have left this. .TP .I "-s [suck-file]" Parse a file created by suck and spool articles in it. .SH "FILES AND CONFIGURATION" See .BR leafnode (8) for the list of files affected, and for information on configuring .B fetchnews. .SH ALGORITHM Here is a brief description of what .B fetchnews does. .PP First, after connecting to the upstream NNTP server, all articles in .I /var/spool/news/out.going are posted using POST if the server is marked as postable. If a posting fails, that article is tried to post to a next postable server. Then, finally all articles not posted move into .I /var/spool/news/failed.postings which an administrator has to clean up once in a while. Moving a file back to .I /var/spool/news/out.going is sufficient to resubmit it. .PP Second, the upstream server's list of newsgroups (obtained using LIST ACTIVE and LIST NEWSGROUPS) is merged into .BR leafnode "'s" (this step is most often optimized away). .PP Third, .B fetchnews iterates over the list of newsgroups, performing a GROUP, an XOVER and a number of ARTICLE commands for each group which has been read during the past week. .SH NOTES .B Fetchnews does not use NEWNEWS or XHDR. NEWNEWS is not used because it is often very expensive. XHDR is also not used because its implementation of some nntpds is slower than XOVER. .B Fetchnews use XOVER to collect information about new articles, then .B fetchnews decide whether it gets them. .PP The only way to control what newsgroups are accessible to local users is to control what the upstream server lets .B fetchnews read, and that will not keep out all crossposts (endemic in e.g. the alt.sex groups). If your site is big enough that you need to control newsgroup access, consider using a news server which is designed for a big site. .PP .B Fetchnews sets its effective uid to "news", because almost all of the problems I have had with .B leafnode are due to files which aren't writable for user news. .SH BUGS .B Fetchnews ignores cancel messages. But it understands "Supersedes:" header to read news.answers. .PP Never deletes a group from the list of active newgroups. .SH "AUTHOR AND LICENCE" Written by Arnt Gulbrandsen and copyright 1995-96 Troll Tech AS, Postboks 6133 Etterstad, 0602 Oslo, Norway, fax +47 22646949. .PP Modified by Cornelius Krasel . Copyright of the modifications 1997. .PP Modified by Kazushi (Jam) Marukawa . Copyright of the modifications 1998,1999,2000. .PP Use, modification and distribution is allowed without limitation, warranty, or liability of any kind. .SH SEE ALSO .BR tcpd (8), .BR hosts.allow (5), .BR leafnode (8), .BR texpire (8), .B "RFC 977"