Thread View: news.software.nntp
67 messages
67 total messages
Page 2 of 2
Started by Russ Allbery
Thu, 27 Apr 2000 00:00
Page 2 of 2 • 67 total messages
Re: INN 2.3.0 public beta
Author: Katsuhiro Kondou
Date: Tue, 02 May 2000 00:00
Date: Tue, 02 May 2000 00:00
15 lines
1577 bytes
1577 bytes
In article <957160565.8382@news.netscum.dk>, Jeremy <bofh@netscum.dk> wrote; } > Xref: in the article is needed for that, but not Xref: in overview (though } > I suspect there are some newsreaders that won't work unless it's in } > the overview). } } It has to be in the overview if you want crossposts marked read for articles } that you are marking as read without actually reading them. Gnus does. -- Katsuhiro Kondou
Re: INN 2.3.0 public beta
Author: Jeremy
Date: Wed, 03 May 2000 00:00
Date: Wed, 03 May 2000 00:00
60 lines
2909 bytes
2909 bytes
Bill Cole <bill@scconsult.com> wrote: >> Yeah, but if you don't have Xrefs in the overviews, and your killfile >> needs them, they'll be grabbed from the server anyway. > > Even if they aren't in the overview? Yeah, at least with my newsreader. If I'm reading from a server that doesn't have Xrefs in the overviews, and I try to kill using them, I then have to sit there and wait while they are grabbed. > I do not often use my bandwidth provider's news facilities, but when I do > I am in fact hitting a major wholesaler, where one cannot pull headers > which are not in the overview. That would be a problem; presumably, you mean you can't XHDR on non-overview headers? I hate that, as it forces my reader to fall back on using HEAD when I want non-overview headers, which obviously takes much longer. > I would have expected you to be somewhat familiar with this. I thought I was... > You need Xref to know whether overview-based killing needs Xref. > > I don't *use* the Xref header to kill by, I just need it to do the > kills right. ...but I don't follow that at all. Either you're killing on the content of the Xref header, or you're not, right? > If I understand it correctly (I drifted off that thread...) HEADERS > would be nice but not really much better than XOVER plus full XHDR > implementation. It'd be a win if you don't want or need all of the fields included in the standard overview. Like, for example, Xref. :) > And of course there is an implementation issue: readers in common use > are unlikely to have support for years after the first widespread > server support. Yes, but that problem exists with any change in the feature set. >> Of course, killfiling still counts as "marking unread articles read", >> so my original comment still applies. :) > > Right, but it's not a negligible activity. There is also some savings > because the overview is pulled once, not once in every group the article > is cross-posted to. Sure, *if* you're doing that. I typically don't have my newsreader chase Xrefs when it marks unread articles read, so I don't really need it. -- Jeremy ( jeremy@exit109.com | bofh@netscum.dk )
Re: INN 2.3.0 public beta
Author: Russ Allbery
Date: Wed, 03 May 2000 00:00
Date: Wed, 03 May 2000 00:00
13 lines
1451 bytes
1451 bytes
J Moreno <planb@newsreaders.com> writes: > Until INN supports it, most clients aren't going to even check for it, > but if INN did support it I think it'd be added in a lot of clients > within a year. Given an acceptably fast implementation it'd be the > preferred method of doing filtering and quickly added by most programs. Patches are welcome; I just don't have a lot of time to work on it myself. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: INN 2.3.0 public beta
Author: Bill Cole
Date: Wed, 03 May 2000 00:00
Date: Wed, 03 May 2000 00:00
51 lines
2970 bytes
2970 bytes
In article <20000503134110.828$Bh@newsreader.com>, curt@kcwc.com (Curt Welch) wrote: >Second, any application that needed only one or two headers that >currently uses multile XHDR calls could be converted to try HEADERS >first. Getting all the headers you want on one pass instead of two >or more makes life easier for the newsreader because it doesn't have >to deal with the problems associated with articles being expired or >canceled between calls to XHDR. > >For example, with XHDR, if you do a > > XHDR Date 1- > >It gives you all Date headers from all the articles in the group. Then >if you follow that with a > > XHDR Subject 1- I'm not aware of any newsreader that sloppy. Are you? It's much more sensible, essentially no more work, and safer to define the end of the range. >To get all the subjects, you may find that a new article showed up >between the two calls. Then you have to either issue a third XHDR to >get the Date: for that article, or just ignore the fact the new article >which showed up. Most likely, instead of dealing with all that >complexity, you will just do a GROUP first, and only ask for headers >which are in the range specified by the GROUP command. But that way >you don't get to see those new articles until much later. But the client MUST do a GROUP first anyway. Missing a few messages until the next check is the cost of determinism. I understand that there is a marginal advantage, given a strong server implementation (essentially an all-headers overview DB), but I'm very skeptical of wide implementation in servers happening. INN and Diablo might go there, but I don't espect we'll be seeing Supernews implement HEADERS any time soon and it would be quite a trick for some of the lesser servers to add on the code to do it well. The server code would certainly be non-trivial even if you define the headers actually indexed and fall back to walking the articles for anything wierd. -- Bill Cole, Geek at large. 1972nd at Freenix! On a 68LC040/33 with 9GB of disk and a joke OS!
Re: INN 2.3.0 public beta
Author: Curt Welch
Date: Wed, 03 May 2000 00:00
Date: Wed, 03 May 2000 00:00
109 lines
6419 bytes
6419 bytes
bill@scconsult.com (Bill Cole) wrote: > In article <957242886.971518@news.netscum.dk>, Jeremy <bofh@netscum.dk> > wrote: > If I understand it correctly (I drifted off that thread...) HEADERS would > be nice but not really much better than XOVER plus full XHDR > implementation. There are multiple advantages to the HEADERS command. First, it saves bandwidth for any application that doesn't need all the standard XOVER fields. Any newsreader that currently uses XOVER but at times doesn't need all the XOVER headers, could easily be modified to try HEADERS first, and if that fails, fall back to XOVER. Xref: and References: are two large fields that for some applications could be ignored. Second, any application that needed only one or two headers that currently uses multile XHDR calls could be converted to try HEADERS first. Getting all the headers you want on one pass instead of two or more makes life easier for the newsreader because it doesn't have to deal with the problems associated with articles being expired or canceled between calls to XHDR. For example, with XHDR, if you do a XHDR Date 1- It gives you all Date headers from all the articles in the group. Then if you follow that with a XHDR Subject 1- To get all the subjects, you may find that a new article showed up between the two calls. Then you have to either issue a third XHDR to get the Date: for that article, or just ignore the fact the new article which showed up. Most likely, instead of dealing with all that complexity, you will just do a GROUP first, and only ask for headers which are in the range specified by the GROUP command. But that way you don't get to see those new articles until much later. With HEADERS, you get one consistant view of the articles and can use HEADERS 1- Date Subject TO get all the headers on one pass. And if new articles show up while the download is in progress, the newsreader will get them now instead of having to check later. It's just much simpler for the newsreader if it can get all the headers it needs with one command. The third advantage is that over time, newsreaders will be rewritten to allow the user to select what gets downloaded. For slow connections, the user can decide not to download References or Xref at the cost of not having articles threaded or having cross posted articles marked read for kill files etc. If you want to have extra headers for the purpose of filtering or display, you will be able to add any header you want. HEADERS is also much cleaner (from the client perspective) than LIST OVERRVIEW.FMT plus XOVER, plus XHDR. Any client that wants extra headers today (or just wants to work "correctly" for any OVERVIEW.FMT), needs to have a lot of complex code to figure out what headers shows up with XOVER, and which ones need to be fetched with other commands like XHDR. Most newsreaders just don't have that complex code and just assume XOVER has what it wants (or if for example Xref: isn't there, it just doesn't bother with the extra fetch and the marking of cross posted articles just doesn't work). With HEADERS, that complex code gets moved to the news server (where I think it belongs). A news server which supports HEADERS could either create an OVERVIEW DB that stores all headers, or be set up to allow the admin to specify what is stored in the OVERVIEW DB and than have the "smarts" required to use the OVERVIEW data or just use raw header data as requried depending on what headers the user was requesting. > And of course there is an implementation issue: readers > in common use are unlikely to have support for years after the first > widespread server support. That's true but I don't see it as an issue. Any new feature takes a long time to be widely adapted. It's easy for a client to try the HEADERS commad first, and if that doesn't work, fall back to XOVER. If there's any common implementation available on a server, clients can start trying to use it quickly without waiting for it to be wide-spread. So there's no requirement that clients need to wait for all the common servers to implement it befor they can start taking advantage of it. The bigger issue is that the intent of HEADERS is to allow any header to be downloaded - not just OVERVIEW headers. And that's a real technical problem for most servers today which have overview databases optimized for storing only the "standard" overview headers and not all of them. This means that it will take some major work to build a good implementation of the HEADERS command on most servers today. I already have the HEADERS command supported on the news.newsreader.com NNTP server. But it's currently very slow - it just does a head of each article to get the data (and it does it one article at a time with no attempts for parallel fetches). It's not even optimized to use the XOVER code for the headers which are in the XOVER DB. But it wouldn't be hard to make it run at the same speed as the XOVER code if anyone was serious about using it. There are reasons I would like to use it in my web-interface newsreader code so I might end up making it work fast just so I can use it there.... -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: INN 2.3.0 public beta
Author: Karl Kleinpaste
Date: Wed, 03 May 2000 00:00
Date: Wed, 03 May 2000 00:00
17 lines
1778 bytes
1778 bytes
davidsen@tmr.com (bill davidsen) writes: > Have you done anything unusual or creative with your libraries or > anything? Could this be loading/calling some other malloc other than the > standard C library? No, as I said, the system is a remarkably bland RedHat installation. No libc weirdnesses at all -- just what came off the 6.2 cdrom. And as I noted for Russ' benefit earlier, perl itself observes that it was built with usemymalloc=n. > I'd be tempted to build the new PERL, and see if that make any > difference. Tempting, but not tempting enough. It would seem to be hunting in the wrong area.
Re: INN 2.3.0 public beta
Author: Russ Allbery
Date: Wed, 03 May 2000 00:00
Date: Wed, 03 May 2000 00:00
58 lines
3928 bytes
3928 bytes
Curt Welch <curt@kcwc.com> writes: > bill@scconsult.com (Bill Cole) wrote: >> I understand that there is a marginal advantage, given a strong server >> implementation (essentially an all-headers overview DB), but I'm very >> skeptical of wide implementation in servers happening. > yeah, me too. It's a better way to do things than the current XOVER > scheme, but is it valuable enough to actaully get people to implement it > in servers, and clients? Only time will tell... It's a hell of a lot of work on the server end to build a very large database that will never be used by 99% of all clients, even if they implement HEADERS, since most news headers are never queried. At least if you use the traditional overview database approach. Clearly, some headers are more equal than others and on the server you want a multilevel database approach where the headers like Subject and References get more special treatment than Organization. And that means that some header queries will be slower than others, so on the client you still often want to know what you can safely query quickly and what's going to take a longer time while the server hunts down the data. I really dislike the current format in which overview data is returned, particularly the whitespace munging required by the formatting concerns of the returned data. But the idea of saying "these headers are special and you can get them faster than other headers" is *not* a bad idea. > The XPAT features of the HEADERS command is very questionable for high > volume/load servers, but the rest of it is not. Creating a full header > overview DB is not all that much more data than a normal overview DB > (when you compare it to the total space needed for a server). I question this. > Normal overview records seem to be about 300 to 400 bytes per > record. Full headers are about 1000 bytes these days. So a full header > overview database would be about 3x as large as an XOVER only overview > database. But that's still only about 1% of the total storage needed for > the server (i.e. headers only make up about 1* of the data in articles > for a full feed). You're looking at a server that carries binaries, I bet. Most news servers by installation count do not carry binaries. For a text-only feed, the standard guestimate is that overview is roughly 10% of your spool space; you're talking about increasing that to 25-30%. That's a significant change, not only in the amount of data that you have to store, but also in the amount of data that you have to write out, search through, and so forth. Maybe it really doesn't make that much of a difference, but I'm still skeptical. And most of that additional header data really is worthless; in many cases, it's even less useful than the body of the article. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: INN 2.3.0 public beta
Author: bill davidsen
Date: Wed, 03 May 2000 00:00
Date: Wed, 03 May 2000 00:00
38 lines
2211 bytes
2211 bytes
In article <vxk7ldfqw15.fsf@mesquite.charcoal.com>,
Karl Kleinpaste <karl@charcoal.com> wrote:
| This is just getting weirder by the minute. Inside PLartfilter():
[... SNIP! ...]
| 90 for (hp = ARTheaders; hp < ARTheadersENDOF; hp++) {
| (gdb)
| 91 if (hp->Found && hp->Value && strcmp(hp->Name, "Path") != 0)
| (gdb) p *hp
| $12 = {Name = 0x810ce52 "Date", Type = HTreq, Size = 4,
| Value = 0x81557d0 "Sun, 30 Apr 2000 13:53:36 -0400", Length = 31, Found = 1,
| Allocated = 1}
| (gdb) n
| 92 hv_store(hdr, (char *) hp->Name, strlen(hp->Name),
| (gdb)
|
| Program received signal SIGSEGV, Segmentation fault.
| 0x400fc712 in chunk_alloc (ar_ptr=0x40191d60, nb=24) at malloc.c:2764
|
| A simple Date header blows up?
|
| I can't debug inside hv_store aka Perl_hv_store...
Have you done anything unusual or creative with your libraries or
anything? Could this be loading/calling some other malloc other than the
standard C library?
I'd be tempted to build the new PERL, and see if that make any
difference.
--
bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc
"Doing interesting things with little computers since 1979"(tm)
The hardest test of maturity is knowing the difference between
resisting temptation and missing a once-in-a-lifetime opportunity.
Re: INN 2.3.0 public beta
Author: J. Moreno
Date: Wed, 03 May 2000 00:00
Date: Wed, 03 May 2000 00:00
40 lines
2823 bytes
2823 bytes
In article <20000503134110.828$Bh@newsreader.com>, Curt Welch <curt@kcwc.com> wrote: > bill@scconsult.com (Bill Cole) wrote: > > And of course there is an implementation issue: readers in common > > use are unlikely to have support for years after the first > > widespread server support. > > That's true but I don't see it as an issue. Any new feature takes a > long time to be widely adapted. It's easy for a client to try the > HEADERS commad first, and if that doesn't work, fall back to XOVER. > If there's any common implementation available on a server, clients > can start trying to use it quickly without waiting for it to be > wide-spread. So there's no requirement that clients need to wait for > all the common servers to implement it befor they can start taking > advantage of it. Until INN supports it, most clients aren't going to even check for it, but if INN did support it I think it'd be added in a lot of clients within a year. Given an acceptably fast implementation it'd be the preferred method of doing filtering and quickly added by most programs. > The bigger issue is that the intent of HEADERS is to allow any header > to be downloaded - not just OVERVIEW headers. And that's a real > technical problem for most servers today which have overview > databases optimized for storing only the "standard" overview headers > and not all of them. This means that it will take some major work to > build a good implementation of the HEADERS command on most servers > today. Yes, HEADERS needs to be about as fast as XOVER is today before it'd be used by clients, but given that speed I think it'd be adopted fairly quickly. -- J. B. Moreno Pessimist: Half empty Optimist: Half full Engineer: Wrong size glass
Re: INN 2.3.0 public beta
Author: Bill Cole
Date: Thu, 04 May 2000 00:00
Date: Thu, 04 May 2000 00:00
43 lines
2519 bytes
2519 bytes
In article <957323896.593124@news.netscum.dk>, Jeremy <bofh@netscum.dk> wrote: >Bill Cole <bill@scconsult.com> wrote: [...] >> You need Xref to know whether overview-based killing needs Xref. >> >> I don't *use* the Xref header to kill by, I just need it to do the >> kills right. > >...but I don't follow that at all. Either you're killing on the content >of the Xref header, or you're not, right? No, you are killing based on any header, with the use of the Xref header being to chase down the message in all groups. If you don't have the Xref header (or Newsgroups, which is worse) you don't know whether you need to chase crossposts. >>> Of course, killfiling still counts as "marking unread articles read", >>> so my original comment still applies. :) >> >> Right, but it's not a negligible activity. There is also some savings >> because the overview is pulled once, not once in every group the article >> is cross-posted to. > >Sure, *if* you're doing that. I typically don't have my newsreader chase >Xrefs when it marks unread articles read, so I don't really need it. How things look always depend on where one stands... I have a busy newsgroup which once was useful at the top of my newsrc. I pull it first and use it to add new filters and to do a lot of filtering. I kill about 80% of the group. By doing so, I also end up cleaning a lot of garbage from the related (and some really unrelated) groups I read that tend to get a lot of crap crossposted from the noisy wasteland group. The Xref is used and poof goes most of the chaff from a dozen other groups. -- Bill Cole, Geek at large. 1972nd at Freenix! On a 68LC040/33 with 9GB of disk and a joke OS!
Re: INN 2.3.0 public beta
Author: Process Pasteurized Fluffy Produ...
Date: Thu, 04 May 2000 00:00
Date: Thu, 04 May 2000 00:00
100 lines
5182 bytes
5182 bytes
[I sent this as a mail reply but meant to post. Sorry about that.] Curt Welch <curt@kcwc.com> wrote: > Process Pasteurized Fluffy Product <supersede@india.com> wrote: >> Here's something to play with on recent 2.3 k0dez. > Cool. Thanks. I really need to stop playing with this junk but want to at least put something fairly clean out there to play with. I'll slap up a revised copy of the patch somewhere later tonight that mops up a few bits of stupidity I noticed: superfluous COPY/DISPOSE macros yanked out (left over from using SendIOv before settling on SendIOb), a space was being output where it should have been a tab [the msgid case you noted, I think], and "real" headers ought to be mangled XOVER-style just in case tabs be there. > As far as I can tell from a quick scan of the code it looks almost > identical to my implementaion (minus the optional :wildmat args for each > header argument). I was a little troubled about how to proceed. Wildmats are usually allowed to be strung together so there can be whitespace in the search, and the current syntax would seem not to lend itself to that. Would it be okay to leave that buglet in the command and just document it? > I think I did bascially the same thing you did which was to take the > xhdr code and add support for multiple headers. Yeah, pretty much. BTW, I don't recall seeing it mentioned in the threads worrying about potential inefficiency when an article fetch gets used for non-overview headers, that HEADERS would be more efficient than XHDR/XPAT in the case that the client wants to see two or more non-overview headers. > a message-ID is used to specify the article. I do this: > 221 0 <87d7n2vkx9.fsf@meowhost.meow.invalid> > 0 Wouf > . > Where as you did this: > HEADERS <87d7n2vkx9.fsf@meowhost.meow.invalid> x-meow > 221 headers follow. > <87d7n2vkx9.fsf@meowhost.meow.invalid> Wouf Yeah. The thinking there is that the msgid variant is going to be useful for things like offline readers and suck-type programs, which like to use batched commands and might have trouble keeping state, but maybe that's a silly concern? OTOH, I didn't want to put the ID in the 2xx response line because then it was inconsistent with the number-range variant [but more on this below]. > Putting the Message-ID first and following it with a space instead > of a tab. That be a typo. "it needs work" really, really meant that. [...] > Buy now that I think more about this, what I think actaully needs to be > done here is to use a new return code for the HEADERS output instead of > re-using 221 which is already used for HEAD, XHDR, XPAT, and PAT commands. Yeah, a unique response code would be nice, again for clients trying to do fancy async things. The current namespace (numberspace?) for NNTP responses scares the bejeezuz outta me, so (like with the wildmat thingy) ignoring the problem had appeal. > XOVER uses 224 so I'd suggest using the next code after that: 225 -- which > as far as I can tell isn't being used. Okay, so how do we keep it that way? Just yell DIBS!!!!1! ? > And then make the output well > defined so it can be machine > parsed: > 225 message-id|range header-list IOW, echo back the client's command. Do I understand that that right? Seems like it would to the job. If that's it, then using the 0 in the detail line for the msgid case would make more sense. > Any thougts about using the 225 return code like this? I just gave them in the last paragraph, so if you're reading this bottom to top, I'll get to that earlier. > I've gone ahead and changed my implementation to do this now and my > HEADERS by Message-ID includes the Message-ID as the first field > instead of a 0. Imaginary newsreaders the world over thank you for helping to make our respective versions of this imaginary command more interoperable. -- eludom
Re: INN 2.3.0 public beta
Author: Process Pasteurized Fluffy Produ...
Date: Thu, 04 May 2000 00:00
Date: Thu, 04 May 2000 00:00
219 lines
6707 bytes
6707 bytes
Jeremy <bofh@netscum.dk> wrote:
> This is why I'd like to see something like the HEADERS command implemented.
> I almost always *don't* want Xrefs in my overviews when I'm reading over
> the Internet, but others do, and I might sometimes, so it would be very
> nice to have a choice at the client side.
Here's something to play with on recent 2.3 k0dez. It could stand
some more work that I'm unikely to have time to do (among other
things, the cmd syntax and output format are wild-ass guesses based on
various discussions here and I didn't get around to the part about
multiple copies of a header), so if anyone wants to adopt and nurture
(or discard and torture) this crap, it's all yours. So there.
*** article.c.dist Thu May 4 00:26:28 2000
--- article.c Thu May 4 02:58:59 2000
***************
*** 1108,1111 ****
--- 1102,1271 ----
PushIOb();
OVclosesearch(handle);
DISPOSE(pattern);
+ }
+
+
+ /*
+ ** HEADERS, an experimental extension.
+ **
+ ** Output resembles XOVER, except that the end user specifies the list
+ ** of headers to use.
+ */
+ FUNCTYPE CMDheaders(int ac, char *av[])
+ {
+ int ovflags[ac];
+ char *headers[ac];
+ char buff[SPOOLNAMEBUFF];
+ BOOL needart = FALSE;
+ ARTNUM artnum;
+ ARTRANGE range;
+ BOOL DidReply;
+ int i, j;
+ char *p, *text;
+
+ if (!PERMcanread) {
+ Printf("%s\r\n", NOACCESS);
+ return;
+ }
+
+ /* Message-ID specified? */
+ if (av[1][0] == '<') {
+ p = av[1];
+ if (!ARTopenbyid(p, &artnum)) {
+ Printf("%d No such article.\r\n", NNTP_DONTHAVEIT_VAL);
+ return;
+ }
+
+ Printf("%d headers follow.\r\n", NNTP_HEAD_FOLLOWS_VAL);
+
+ SendIOb(av[1], strlen(av[1]));
+ SendIOb(" ", 1);
+ for (i = 2; i <= ac; i++) {
+ if (i == ac) {
+ SendIOb("\r\n", 2);
+ break;
+ }
+ if (i > 2)
+ SendIOb("\t", 1);
+ text = GetHeader(av[i], FALSE);
+ if (text == NULL)
+ headers[i] = NULL;
+ else {
+ headers[i] = COPY(text);
+ SendIOb(headers[i], strlen(headers[i]));
+ }
+ }
+ SendIOb(".\r\n", 3);
+ PushIOb();
+ for (i = 2; i < ac; i++) {
+ if (headers[i] != NULL)
+ DISPOSE(headers[i]);
+ }
+ ARTclose();
+ return;
+ }
+
+ /* Range specified. */
+ if (!CMDgetrange(ac - 1, av, &range, &DidReply)) {
+ if (!DidReply) {
+ Reply("%d no headers follow.\r\n", NNTP_HEAD_FOLLOWS_VAL);
+ Printf(".\r\n");
+ return;
+ }
+ }
+
+ /* See if we need to call on the real articles */
+ for (i = 2; i < ac; i++) {
+ for (ovflags[i] = -1, j = 0; j < ARTfieldsize; j++) {
+ if (caseEQ(ARTfields[j].Header, av[i])) {
+ ovflags[i] = j;
+ break;
+ }
+ }
+ if (ovflags[i] < 0) {
+ needart = TRUE;
+ break;
+ }
+ }
+
+ if (needart) { /* need to read headers from spool, yuck. */
+ Printf("%d headers follow.\r\n", NNTP_HEAD_FOLLOWS_VAL);
+ for (i = range.Low; i <= range.High && range.High > 0; i++) {
+ if (!ARTopen(i))
+ continue;
+
+ j = sprintf(buff, "%lu\t", i);
+ SendIOb(buff, j);
+
+ for (j = 2; j <= ac; j++) {
+ if (j == ac) {
+ SendIOb("\r\n", 2);
+ break;
+ }
+ if (j > 2)
+ SendIOb("\t", 1);
+ text = GetHeader(av[j], FALSE);
+ if (text == NULL)
+ headers[j] = NULL;
+ else {
+ headers[j] = COPY(text);
+ SendIOb(headers[j], strlen(headers[j]));
+ }
+ }
+
+ for (j = 2; j < ac; j++) {
+ if (headers[j] != NULL)
+ DISPOSE(headers[j]);
+ }
+ ARTclose();
+ }
+ PushIOb();
+ Printf(".\r\n");
+ }
+ else { /* use overview */
+ void *handle;
+ char *data;
+ int len;
+ TOKEN token;
+
+ handle = (void *) OVopensearch(GRPcur, range.Low, range.High);
+ if (handle == NULL) {
+ Reply("%d no NOV headers follow\r\n.\r\n", NNTP_HEAD_FOLLOWS_VAL);
+ return;
+ }
+
+ Printf("%d NOV headers follow.\r\n", NNTP_HEAD_FOLLOWS_VAL);
+ while (OVsearch(handle, &artnum, &data, &len, &token, NULL)) {
+ if (len == 0 || PERMaccessconf->nnrpdcheckart
+ && !ARTinstorebytoken(token))
+ continue;
+
+ j = sprintf(buff, "%lu\t", artnum);
+ SendIOb(buff, j);
+
+ for (j = 2; j <= ac; j++) {
+ if (j == ac) {
+ SendIOb("\r\n", 2);
+ break;
+ }
+ if (j > 2)
+ SendIOb("\t", 1);
+ text = OVERGetHeader(data, ovflags[j]);
+ if (text == NULL)
+ headers[j] = NULL;
+ else {
+ headers[j] = COPY(text);
+ SendIOb(headers[j], strlen(headers[j]));
+ }
+ }
+ for (j = 2; j < ac; j++) {
+ if (headers[j] != NULL)
+ DISPOSE(headers[j]);
+ }
+ ARTclose();
+ }
+ PushIOb();
+ Printf(".\r\n");
+ OVclosesearch(handle);
+ }
}
*** nnrpd.c.dist Thu May 4 00:26:42 2000
--- nnrpd.c Thu May 4 00:49:39 2000
***************
*** 100,105 ****
--- 100,106 ----
extern FUNCTYPE CMDxover();
extern FUNCTYPE CMDxpat();
extern FUNCTYPE CMDxpath();
+ extern FUNCTYPE CMDheaders();
extern FUNCTYPE CMD_unimp();
#ifdef HAVE_SSL
extern FUNCTYPE CMDstarttls();
***************
*** 161,166 ****
--- 162,169 ----
"header range|MessageID pat [morepat...]" },
{ "xpath", CMDxpath, TRUE, 2, 2,
"MessageID" },
+ { "headers", CMDheaders, TRUE, 3, CMDany,
+ "range|MessageID header [header...]" },
{ NULL }
};
--
eludom
Re: INN 2.3.0 public beta
Author: Curt Welch
Date: Thu, 04 May 2000 00:00
Date: Thu, 04 May 2000 00:00
46 lines
3424 bytes
3424 bytes
bill@scconsult.com (Bill Cole) wrote: > But the client MUST do a GROUP first anyway. Missing a few messages until > the next check is the cost of determinism. Yeah, the example isn't very strong. The main point was just to illustrate how things can be cleaner with the HEADERS command. > I understand that there is a marginal advantage, given a strong server > implementation (essentially an all-headers overview DB), but I'm very > skeptical of wide implementation in servers happening. yeah, me too. It's a better way to do things than the current XOVER scheme, but is it valuable enough to actaully get people to implement it in servers, and clients? Only time will tell... > INN and Diablo might go there, but I don't espect we'll be seeing > Supernews implement HEADERS any time soon ... A new feature like this for NNTP could easily take 10 years to become common place. Even if it does catch on, there will be some servers which won't implement it around for a long time. It's really not that much work to add a command like that to any server -- it's mostly just a modified XOVER + XHDR command. The only question is whether it's worth the work. If the users start screaming for it (or posting - "Don't use Supernews, they don't support HEADERS), then it would happen fairly quickly. If the users aren't asking for it, then it's not likely to happen at all. The XPAT features of the HEADERS command is very questionable for high volume/load servers, but the rest of it is not. Creating a full header overview DB is not all that much more data than a normal overview DB (when you compare it to the total space needed for a server). Normal overview records seem to be about 300 to 400 bytes per record. Full headers are about 1000 bytes these days. So a full header overview database would be about 3x as large as an XOVER only overview database. But that's still only about 1% of the total storage needed for the server (i.e. headers only make up about 1* of the data in articles for a full feed). So I see no technical reason why this would be hard or impractical to make work. It just a question of whether it's worth it. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: INN 2.3.0 public beta
Author: Curt Welch
Date: Thu, 04 May 2000 00:00
Date: Thu, 04 May 2000 00:00
103 lines
5025 bytes
5025 bytes
Process Pasteurized Fluffy Product <supersede@india.com> wrote: > Jeremy <bofh@netscum.dk> wrote: > > > This is why I'd like to see something like the HEADERS command > > implemented. I almost always *don't* want Xrefs in my overviews when > > I'm reading over the Internet, but others do, and I might sometimes, so > > it would be very nice to have a choice at the client side. > > Here's something to play with on recent 2.3 k0dez. Cool. Thanks. > It could stand > some more work that I'm unikely to have time to do (among other > things, the cmd syntax and output format are wild-ass guesses based on > various discussions here As far as I can tell from a quick scan of the code it looks almost identical to my implementaion (minus the optional :wildmat args for each header argument). I think I did bascially the same thing you did which was to take the xhdr code and add support for multiple headers. So the return codes basically follow what xhdr uses (430 for no such article on Message-ID lookup and 221 for list follows for all others). And output syntax is like XOVER with fields separated with tabs. The only minor difference I've spoted so far is the output syntax when a message-ID is used to specify the article. I do this: HEADERS <87d7n2vkx9.fsf@meowhost.meow.invalid> x-meow 221 0 <87d7n2vkx9.fsf@meowhost.meow.invalid> 0 Wouf . Where as you did this: HEADERS <87d7n2vkx9.fsf@meowhost.meow.invalid> x-meow 221 headers follow. <87d7n2vkx9.fsf@meowhost.meow.invalid> Wouf . Putting the Message-ID first and following it with a space instead of a tab. To be consistent with the output format when a range is used, I think that space needs to be a tab (so the same parsing code can be used for both types of output in the client). But whether the Message-ID is included as the first field instead of the 0 I don't think is important. My thought was that if they wanted the message-ID on the output line they could ask for it as one of the headers. I think I actually like your way better. The 221 response line I use above is taken from the HEAD command, but it's not consistent with my use of the response line when a range is used. I do this: HEADERS 12254-12255 from x-meow 221 12254-12255 From X-Meow headers follow 12254 Process Pasteurized Fluffy Product <supersede@india.com> Wouf 12255 "Kean Meng, Lim" <kmlim@cheerful.com> . So to be consistent with that, I should have returned: 221 <87d7n2vkx9.fsf@meowhost.meow.invalid> X-Meow headers follow Buy now that I think more about this, what I think actaully needs to be done here is to use a new return code for the HEADERS output instead of re-using 221 which is already used for HEAD, XHDR, XPAT, and PAT commands. XOVER uses 224 so I'd suggest using the next code after that: 225 -- which as far as I can tell isn't being used. And then make the output well defined so it can be machine parsed: 225 message-id|range header-list So the return code lines from the above examples would become: 225 <87d7n2vkx9.fsf@meowhost.meow.invalid> X-Meow and 225 12254-12255 From X-Meow Using a unique return code could make the client side programming easier. It would make it posible to use the same code for reading and parsing both XOVER and HEADERS output without having to "tell" it before hand which output to expect. And adding the headers to the 225 line also means the client code that sends the command doesn't need to "tell" the client code that parses the output what headers to expect since it's already in the output it's looking at. Any thougts about using the 225 return code like this? I've gone ahead and changed my implementation to do this now and my HEADERS by Message-ID includes the Message-ID as the first field instead of a 0. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: INN 2.3.0 public beta
Author: Jeremy
Date: Fri, 05 May 2000 00:00
Date: Fri, 05 May 2000 00:00
31 lines
2158 bytes
2158 bytes
Bill Cole <bill@scconsult.com> wrote: >> ...but I don't follow that at all. Either you're killing on the content >> of the Xref header, or you're not, right? > > No, you are killing based on any header, with the use of the Xref header > being to chase down the message in all groups. If you don't have the Xref > header (or Newsgroups, which is worse) you don't know whether you need to > chase crossposts. Oh, I see what you're getting at. Yeah, you need Xrefs if you want to chase Xrefs. :) > I have a busy newsgroup which once was useful at the top of my newsrc. I > pull it first and use it to add new filters and to do a lot of filtering. > I kill about 80% of the group. By doing so, I also end up cleaning a lot > of garbage from the related (and some really unrelated) groups I read that > tend to get a lot of crap crossposted from the noisy wasteland group. The > Xref is used and poof goes most of the chaff from a dozen other groups. I first stopped chasing Xrefs when I found myself overlooking, and marking read, things that were crossposted to nana.usenet, which I actually wanted to read when I got to the other groups they were posted to. After that I gradually came to like not having Xrefs chased. So the only thing I ever use Xrefs in overviews for is killing on the actual content of the Xref header (crossposts to particular groups, etc), and that rarely. -- Jeremy ( jeremy@exit109.com | bofh@netscum.dk )
Re: INN 2.3.0 public beta
Author: bill davidsen
Date: Tue, 09 May 2000 00:00
Date: Tue, 09 May 2000 00:00
41 lines
2685 bytes
2685 bytes
In article <20000504124431.501$m8@newsreader.com>, Curt Welch <curt@kcwc.com> wrote: | Using a unique return code could make the client side programming | easier. It would make it posible to use the same code for reading | and parsing both XOVER and HEADERS output without having to "tell" | it before hand which output to expect. And adding the headers | to the 225 line also means the client code that sends the command | doesn't need to "tell" the client code that parses the output | what headers to expect since it's already in the output it's looking | at. | | Any thougts about using the 225 return code like this? Seems like a good thing to have an additional code, and this doesn't have any obvious problems, indeed it solves some by allowing the same code for several uses. I do have some reservations about the overhead of the whole idea, but until I actually measure the impact of having the command I certainly won't predict problems. I suspect that it could have load issues, just like NEWNEWS, but that's an admin issue, not a reason to avoid it. Since two people came up with about the same interface, it seems that the obvious solution really is. Any thoughts about (a) putting it in a client, and (b) why someone other than an admin would use it? I admit my normal reading has not produced a burning desire to have this, useful as it may be to admin issues. This actually invites creeping featurism for admin, I can envision a query as complex as SQL when chasing problems with systems, networks, or users. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc "Doing interesting things with little computers since 1979"(tm) The hardest test of maturity is knowing the difference between resisting temptation and missing a once-in-a-lifetime opportunity.
Page 2 of 2 • 67 total messages
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads