Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!dianne.usc.edu!blarson From: blarson@dianne.usc.edu (bob larson) Newsgroups: news.software.b Subject: Re: C news: expire, and batcher Message-ID: <26827@usc.edu> Date: 28 Aug 90 01:03:31 GMT References: <26817@usc.edu> <1990Aug27.172424.18636@zoo.toronto.edu> Sender: news@usc.edu Organization: USC software systems, home of TOADS Lines: 25 Nntp-Posting-Host: dianne.usc.edu In article <1990Aug27.172424.18636@zoo.toronto.edu> henry@zoo.toronto.edu (Henry Spencer) writes: >In article <26817@usc.edu> blarson@dianne.usc.edu (bob larson) writes: >>I've modified batcher not to include Xref: headers. Actually quite >>simple. If there is demand, I'll post an unoffical patch here, but >>would prefer that it just gets incorperated into the next offical >>patch. > >Unless you've found a really clever way of doing it, it's not likely, >I'm afraid. You can't just use egrep, because whatever you do has to >affect headers *only*. It's a change to batcher.c, and the only clever part about it is noting that C news puts the Xref: line first. If the first 6 characters of the file are "Xref: " the portion before the first newline is not put in the batch. (and the size on the "#! rnews" line changes to match.) A fair portion of the code is parinoia about Xref lines that exceed the 8192 byte buffer. (It would be simpler to impelment a policy decision to not send such articles on, but the batcher is not the place to put policy decisions.) -- Bob Larson (blars) blarson@usc.edu usc!blarson Hiding differences does not make them go away. Accepting differences makes them unimportant.