1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401
|
NewsX - An NNTP client for posting and fetching news
====================================================
Version @VERSION@
Written by Egil Kvaleberg
------
NewsX is an NNTP client for Unix. It will connect to a remote NNTP server
and post outgoing articles batched by the news system, as well as fetch
incoming articles.
It provides the NNTP capabilities required for small local news spools on
installations with NNTP access only through limited ISP accounts. It works
well via a dialup SLIP/PPP connection.
NewsX is also well suited for large spools with normal feeds, being used for
pulling newsgroups from specific NNTP servers that are not distributed in
the usual manner. Since NewsX obeys the normal news spool configuration file
and requires little or no specific configuration, the administrative burden
should be minimized.
- Compatible with C News and INN local news servers.
- Configuration relies on standard C News and INN mechanisms for setting
up newsservers and newsgroups.
- Setting of which newsgroups will be exchanged with which remote server
based on sys or newsfeeds files, making administration easy.
- Comprehensive error recovery for posting as well as for fetching. Failed
postings will be retried at the next opportunity, while fetching will
resume at the point where it stopped.
- Logging of errors that occurred, as well as article transfer statistics.
- Optional log file for actual articles posted, and collection of posted
articles in folders.
- Has been designed to be nice, so as not to overload the remote news
server.
- Uses only standard RFC-977 functions, so should be compatible with the
vast majority of news servers.
- Refers to news history database to prevent fetching of articles already
in the local spool. Will not fetch crossposted articles more than once.
Does not rely on Xref, since many sites does not provide it.
NewsX was originally written in C under Linux, and should be quite portable.
Unassisted system configuration via autoconf.
PULLING NEWS
------------
News transfer via fetching (sucking, slurping, pulling) to local news
spools is sometimes claimed to be an inefficient way of transferring news
compared to connecting newsreaders directly to the remote NNTP server.
The fact of the matter is that if set up and used correctly, exactly the
opposite is the case.
A local news spool allows news transfer to occur at off-peak hours,
thereby decreasing the host server load in the critical period. This will
tie up less modems at peak hours, as well as decreasing the connect time
since the actual transfer will run much quicker.
A fetch-based system is also easier to administrate then the feeding kind,
since every site decides for itself what groups it will exchange with whom.
The major down-side is that article propagation times will be longer. For
sites that are leafs in the news distribution tree, this is usually not
very important.
Much of the problems connected with news pulling is connected to the use
of the RFC-977 NEWNEWS command. Most news servers has implemented this
command in an inefficient manner, which will put severe loads on the
newsserver. NewsX does not use NEWNEWS.
ARCHIVE
-------
In this archive you should find the following files:
README To you what "Drink Me" was to Alice.
COPYING The GNU General Public License
FAQ Frequently asked questions
NEWS Versions
configure For making "Makefile"
Makefile.in Input to configure
newsx.8.in For NewsX manpage
tune.h Tunable parameters: You "might" want to modify this
common.h General header
options.h Command line options
statistics.h For collecting statistics
nntp.h NNTP header
proto.h Function prototypes
news.h News system filename conventions
main.c Main program
auth.c Authorization
despool.c Reading the outgoing batch
putarticle.c Actually posting articles
pull.c Pulling to the incoming spool
getarticle.c Actually fetching articles
statistics.c Summarize
request.c Keep track of windowed requests
incoming.c Place incoming news in spool
socket.c Socket interface
server.c For socket.c
logmsg.c Log messages
lock.c Lock file handling
active.c Handling of active file
sys.c Handling of sys or newsfeeds file
msgid.c Message ID repository
history.c Interface to news history database
hash.c Hashing function
dbz.c Standard database manager
dbz.h Standard database manager
hash.c Hashing function
sock.c Socket descriptor
telnet.c Telnet protocol
script.c Connect script
bounce.c Generate bounce message
rnews.c Pipe to rnews
title.c Info for "ps"
stat.c For fstat()
getopt.c Gnu getopt library
getopt1.c Gnu getopt library
getopt.h Gnu getopt library
README.in README original
newsq.in For NewsQ
newsq.1.in For NewsQ manpage
tiny.server A tiny news server
test*.rc For testing
configure.in For autoconf
config.guess For autoconf
config.h.in For autoconf, generated by autoheader
install-sh For autoconf
mkinstalldirs For autoconf
missing For autoconf
acconfig.h For autoconf
aclocal.m4 For autoconf
ansi2knr.c For ancient C compilers
ansi2knr.1 For ancient C compilers
newsx.lsm NewsX summary for sunsite.unc.edu
IAFA-PACKAGE Alternative summary format
COMPILE AND INSTALL
-------------------
1. Type 'make' and hopefully you will get the newsx executable.
2. Type 'su' to become root, and then 'make install' to install the
executables and the manual page.
MAILING LISTS
-------------
If you want to be informed about future NewsX versions and receive
possible bug alerts, you can send an email message to:
majordomo@kvaleberg.no
With the following line in the message body:
subscribe newsx-announce
If you want to join the NewsX discussion list, you can send an
email message to the same address with the following line in the
message body:
subscribe newsx
QUICK START WITH C News
-----------------------
We assume that you already have C News installed. What you have to do is:
1. Do all maintenance of the news system as user "@NEWSUSER@". Ensure
that the ".profile" of this user defines a path that includes
"@NEWSBIN@". E.g.:
export PATH="$PATH:@NEWSBIN@"
2. Ensure that an outgoing batch has been configured in "@NEWSHOME@/sys".
If the NNTP host is named "news.acme.net", a minimum configuration
might be:
ME:all/all::
acme/acme.net:all,!junk,!control/all:FL:
The outgoing batch will be named "acme". The "acme.net" is the string
that this NNTP site places in the beginning of the "Path:" of each
news article it sends.
All groups that you do NOT want to exchange with the host in question
should be listed with an ! before it, the "junk" group being a standard
fitment.
The L-flag is a double insurance that only actual local postings will
be sent out.
3. If you haven't done so already, define one or more newsgroups that
will appear in the "@ACTIVE@" file:
addgroup acme.test y
4. Try to fetch news articles for these groups by doing:
newsx -dddd acme news.acme.net
5. The articles should now appear in the incoming batch
"@INCOMING@". If you invoke:
newsrun
the incoming articles should appear in the news spool. In the
example, you may look for them in "@SPOOL@/acme/test".
6. Using a newsreader, post an article to a suitable test group. Try to
use a group with as small distribution as possible, preferably local
to the external newsserver you are using. If you haven't done so
already, the group must be in the "@ACTIVE@" file.
The next time that newsrun is invoked, the articles will be output to
the spool file "@BATCH@/acme/togo" specified in the
"@NEWSHOME@/sys" file.
7. Run:
newsx -ddddn acme news.acme.net
to do a "dry test" to ensure that everything is set up correctly. No
external connection is required.
8. Now, fire up the connection and do it for real:
newsx -dd acme news.acme.net
Check that everything runs smoothly. The "-dd" may be removed when you
are sure everything works as expected. To maintain a log of posted
articles, as well as a folder containing all articles, you can do:
newsx -l posted.log -f posted acme news.acme.net
9. You may want to arrange for automatic news exchange by using "crontab".
It is usually good to invoke newsrun before and after the newsx session.
10. To make NewsX run quicker, try adding the following option:
--window 10
11. For more information about how to set up news and other subjects related
to use of ordinary ISP accounts, you might want to consult:
http://home.sn.no/~egilk/ISP-Hookup-HOWTO.html
ftp://ftp.sn.no/user/egilk/ISP-Hookup-HOWTO.txt
QUICK START WITH INN
--------------------
We assume that you already have INN installed. What you have to do is:
1. Do all maintenance of the news system as user "@NEWSUSER@". Ensure
that the ".profile" of this user defines a path that includes
"@NEWSBIN@". E.g.:
export PATH="$PATH:@NEWSBIN@"
2. Ensure that an outgoing batch has been configured in
"@NEWSFEEDS@". If the NNTP host is named "news.acme.net",
a minimum configuration might be:
ME:*::
acme/acme.net:*,!junk*,!control:Tf,Wfb:
The outgoing batch will be named "acme". The "acme.net" is the string
that this NNTP site places in the beginning of the "Path:" of each
news article it sends.
All groups that you do NOT want to exchange with the host in question
should be listed with an ! before it, the "junk" group being a standard
fitment.
3. If you haven't done so already, define one or more newsgroups that
will appear in the "@ACTIVE@" file:
ctlinnd newgroup acme.test
4. Try to fetch news articles for these groups by doing:
newsx -dddd acme news.acme.net
5. The articles should now appear in the incoming batch
"@INCOMING@". If you invoke:
rnews -U
the incoming articles should appear in the news spool. In the
example, you may look for them in "@SPOOL@/acme/test".
6. Continue with point 6 in the C News explanation above.
LEGAL MATTER
------------
Copyright 1996, 1997 Egil Kvaleberg
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
ACKNOWLEDGMENTS
---------------
The DBZ database manager is copyright 1988 Jon Zeeff.
The NNTP header file is copyright 1994 David Alden and The Ohio State
University.
The getopt library is copyright 1987, 88, 89, 90, 91, 92, 93, 94, 95
Free Software Foundation, Inc.
Autoconf is copyright 1992, 1993, 1994, 1996, 1997 Free Software
Foundation, Inc.
Automake is copyright 1994, 1995, 1996 1997 Free Software Foundation,
Inc.
The wildmat function is written by Rich $alz in 1986.
Ansi2knr is copyright 1989, 1991, 1993, 1994, 1995, 1996 Aladdin Enterprises.
Please refer to the individual files for a full description of the terms
that apply.
Thanks to the following individuals for constructive comments and
improvements:
Greg Wooledge <wooledge@kellnet.com>
Riku Saikkonen <rjs@isil.lloke.dna.fi>
Simon J Mudd <sjmudd@redestb.es>
Laurent Frigault <frigault@isicom.fr>
Gerhard Zuber <zuber@berlin.snafu.de>
Bruce Fisher <bruce@smtl.co.uk>
Tim Tuck <tim_tuck@yes.optus.com.au>
Stanislav Protassov <st@sw.org.sg>
Brian Buhrow <buhrow@cats.ucsc.edu>
Michael Faurot <mfaurot@phzzzt.atww.org>
Rachel Polanskis <r.polanskis@nepean.uws.edu.au>
Stoty <stoty@legba.tvnet.hu>
Arne Georg Gleditsch <arnegl@ifi.uio.no>
Randall Shutt <rshutt@extacy.ravenet.com>
Rene Hoejbjerg Larsen <renehl@post1.tele.dk>
J. Richard Sladkey <jrs@foliage.com>
Filip Lingier <filip@filtronix.eunet.be>
Joacim Persson <sp2joap1@ida.his.se>
Andreas Jaeger <aj@arthur.pfalz.de>
Janne Snabb <snabb@niksula.hut.fi>
Frank Tarczynski <ftarz@mindspring.com>
Jason Brown <jbrown@interalpha.co.uk>
Knut Anders Hatlen <kahatlen@riksnett.no>
Adrian Bridgett <adrian.bridgett@poboxes.com>
Paul Tomblin <ptomblin@xcski.com>
CONTACT INFORMATION
-------------------
All comments, changes you had to make for specific systems, bug
reports, bug fixes, etc. can be sent to:
egil@kvaleberg.no
There is also a mailing list available, as described before.
Although not a requirement of the license terms, you are according
to ancient news software tradition encouraged to send a postcard to
the following address if you find the program useful:
Egil Kvaleberg
Husebybakken 14A
N-0379 Oslo
Norway
|