Changes for Leafnode-1.7

 
  Leafnode home  

Download  

Changes  

FAQ  

Mailing list  

Press  

Links  

Last update 25 Aug 2000  

 

History of 1.7.1 -- changes since 1.7

libutil:

091298:
configutil: fixed a bug in readconfig() which crippled the "nodesc" option. The format of "nodesc" is now different: it is put on a separate line.
081298:
activutil: replaced the for{} loop for removal of spurious '\0' bytes with calls to memchr(). This makes the operation at least twice as fast if the groupinfo file is not corrupted. If the groupinfo file is corrupted, the operation becomes rather slow, however (which is maybe not too bad since it makes users notice :-).

Miscellaneous:

091298:
fixed "nodesc" description in leafnode.8 and config.example
081298:
some changes to the README file

History of 1.7 -- changes since 1.6.2:

libutil:

031298:
configutil: included some code for parsing "nodesc" parameters with servers
031298:
configutil: removed code for postserver; we don't need it anymore
221198:
configutil: posting would not work anymore. Fixed.
211198:
configutil: messed up and repaired parse_line()
211198:
xoverutil: removed a superfluous "#include <setjmp.h>"
211198:
deleted sfgets() from nntputil
211198:
moved getaline() from nntputil to miscutil
211198:
configutil: now every server can have its own port, username and password (suggested by Joey Hess <joey@kitenet.net>)
211198:
miscutil: chdirgroup() did always create new directories (annoying when using Netscape). Fixed.
201198:
configutil: some changes with regard to starting of debugging
201198:
configutil: new parameter maxbytes. Instead of actually determining how many bytes a message has, maxbytes calculates the maximal number of lines such a message might have and works then with maxlines. This reduces NNTP traffic but might be deleterious for program listings and similar stuff.
191198:
configutil: new parameter minlines
181198:
activutil: readactive(): stuff is now not free()d anymore at the beginning of the procedure (caused segfaults)
131198:
configutil: debugmode > 1 now makes all programs produce corefiles
131198:
activutil: blocked stuff from leafnode-1.5 removed
131198:
activutil: readactive(): stuff no more static
131198:
activutil: readactive(): active is now always cleared
091198:
activutil: complete rewrite of readactive() since it would still segfault at times.
061198:
nntputil: new function nntpdisconnect() which makes all the proper tests and then disconnects an NNTP connection.
311098:
xoverutil: getxover() returns now 0 when directory is empty
301098:
configutil: new parameter "debugmode". If set, the programs will continue to generate lots of output to the news.debug syslog facility. Otherwise, they won't.

fetch:

051298:
if a new server is added in the config file, fetch now gets the full list of newsgroups the first time.
041298:
articles are now posted to all upstream servers that allow posting. To achieve this, the filenames of successfully posted articles are put into a list and all entries in this list are deleted later with the new function delposted(). This is probably not bug-free at all yet.
031298:
code for postservers removed: fetch now realizes whether a server allows posting or not and only in the former case will try to post articles
031298:
code for servers which don't support XGTITLE or LIST NEWSGROUPS is now partially configurable: option should be server = your.server.host nodesc
221198:
lockfile_exists() introduced: makes all proper tests and removes stuff from the main file. Suggested by Bjørn Frantzen <bjoff@bgnett.no>
211198:
getgroup(): fixed an instance of sloppy programming (introduced by myself in 1.6.2) that lead to a bug when I rewrote the code for parsing the config file
211198:
getgroup(): fixed a bug when article was already present (error message "unable to store article: "). It is unclear at the moment what causes articles to be fetched twice. It is also unclear what "Invalid argument" means when returned by stat().
201198:
getgroup(): fixed a bug in the code which would result in odd behaviour of fetch if verbosity was off and a group contained no new articles
201198:
getgroup(): for some odd reason fetch forgot to automatically unsubscribe newsgroups (this bug was introduced in 1.6). Fixed.
191198:
added parameter "minlines" because of spamming with empty articles of alt.religion.scientology
181198:
corrected a small error when calculating initial limits (reported by Diana Schirmer <diana.schirmer@t-online.de>)
171198:
some authentication code put into main(), courtesy of Jeff East <an972@freenet.carleton.ca>
101198:
new code for upstream servers which neither support XGTITLE nor LIST NEWSGROUPS properly (see detailed explanation under misc).
091198:
fixed problems with delayed body fetching and multiple servers (reported by Holger Graf <Holger.Graf@gmx.net>).
061198:
removed double call of usage() from main()
061198:
included -f option in usage()
061198:
fetch would sometimes not disconnect properly. Bug and fix reported by Peter Hirdina <Peter.Hirdina@gmx.net> and Juergen Richter <richter@wohnheim.uni-ulm.de>.
061198:
fixed a typo in age()
061198:
fetch now logs its version number to news.debug
301098:
added debugmode thingy
281098:
removed a possible cause of segfaults if /var/spool/news/active.read did not exist (in nntpactive()).
251098:
fetch would ignore lines beginning with a dot. Fixed. Reported by Michael Guertler <guertler@cs.bonn.edu>.
221098:
fetch crashed if the permissions of /var/lock/news were messed up (which they should never have been, but apparently some people messed around with permissions). Now fetch terminates with proper error message. Reported by Peter Hirdina <Peter.Hirdina@gmx.net>.

nntpd:

211198:
pseudo articles now do not refer to http://www.troll.no/ anymore.
211198:
removed superfluous declaration of fqdn[64]
101198:
removed creation of dotfiles in dolistgroup()
091198:
when a client would use LIST OVERVIEW.FMT after GROUP, XOVER would not work properly anymore. Reported and fixed by Michael Schwendt <sidplay@geocities.com>. (This bugfix makes the news client of StarOffice work properly.)
061198:
markinterest(): interesting.groups/news.groups.name is now opened with O_APPEND instead of O_TRUNC. (Opening the file with O_TRUNC would delete previously marked articles when using the "delaybody" option.) Bug report and fix provided by Holger Graf <grafh@t-online.de>.
311098:
for some reason nntpd would not log incoming commands anymore if debugmode was on. Fixed.
301098:
added debugmode thingy

texpire:

211198:
total deletes are now also logged to news.info
201198:
messed around with the expiry algorithm
061198:
added logging of version number to news.debug
061198:
added a usage message
061198:
added -f option (don't check atimes of files, important when you grep through a spool directory or otherwise read files in the spool directory manually)
301098:
added debugmode thingy

checkgroups:

301098:
more informative error message if checkgroups file could not be opened

Misc:

031298:
documentation for "nodesc" added
031298:
Makefile: #define HAVE_XGTITLE removed (now configurable)
211198:
gave up the project to give each function its own file since size reduction is at most 10 kBytes after stripping (before stripping there is even size increase):
		"old"   "new"
		20464  14640  checkgroups
		51824  46976  fetch
		48560  44088  nntpd
		33800  23368  texpire
211198:
updated leafnode.8 and config.example (which did not include an example of a supplementary server either)
201198:
updated leafnode.8 to include "minlines" and "maxbytes"
101198:
updated README
101198:
Makefile: new #define HAVE_XGTITLE (by default switched on) must be switched off if upstream newsserver supports neither "XGTITLE news.group.name" nor "LIST NEWSGROUPS news.group.name" (reported by Richard Poole <rp202@rp202.demon.co.uk>)
091198:
fixed a typo in newsq.1 (reported by Lenz Grimmer <grimmer@suse.de>)
091198:
changed Makefile: newsq is now also installed (in /usr/local/bin)
091198:
updated TODO file
091198:
added CREDITS file
061198:
added documentation for -f to texpire.8
061198:
added documentation for debugmode to leafnode.8