🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
30 messages
30 total messages Started by Kenneth Porter Fri, 26 May 2000 00:00
Re: Xnews follow-up notification ?
#46610
Author: Kenneth Porter
Date: Fri, 26 May 2000 00:00
25 lines
1661 bytes
rpresser@NOSPAMimtek.com.invalid (Ross Presser) wrote in 
<8F32634E9pt101594@207.211.168.97>:

>alt.distinguished.bart@[NoSpam]cts-bv.nl (Bart
>Lagerweij).wrote.posted.offered: 
>
>>But I wonder if xnews can notify me if someone followsup to a
>>posting of mine, without me having to open the newsgroup in xnews.

>Another possibility might be to do an XPAT search for your idtoken on
>open.  Since XPAT is a major hog of server resources, this isn't
>terribly likely either. 

<back of napkin mode>

So what we really want to do is lobby the server writers to create an 
extension to maintain a database of idtokens to watch for, and to report 
the contents of this database (keyed on idtoken) upon request. When we post 
an article, the server can register the idtoken as something to watch for 
whenever it receives new articles, and the registration expires after some 
configurable period.

</back of napkin mode>

Re: Xnews follow-up notification ?
#46604
Author: Andrew
Date: Fri, 26 May 2000 00:00
12 lines
1311 bytes
In article <1eb8qlt.1s5z5uu1rag5spN%planb@newsreaders.com>, J. B. Moreno wrote:
>A more reasonable hope would be for XPAT to be optimized so that it
>worked faster and took less resources.

XPAT on overview headers, like References:, is probably about as efficient
on most servers as it could be.

-- 
Andrew, Supernews (a service of Critical Path, Inc.)
http://www.supernews.com - UK and US individual and corporate NNTP services

Re: Xnews follow-up notification ?
#46606
Author: Ross Presser
Date: Fri, 26 May 2000 00:00
42 lines
2039 bytes
alt.distinguished.shiva@well.com (Kenneth
Porter).wrote.posted.offered: 

>rpresser@NOSPAMimtek.com.invalid (Ross Presser) wrote in 
><8F32634E9pt101594@207.211.168.97>:
>
>>alt.distinguished.bart@[NoSpam]cts-bv.nl (Bart
>>Lagerweij).wrote.posted.offered: 
>>
>>>But I wonder if xnews can notify me if someone followsup to a
>>>posting of mine, without me having to open the newsgroup in xnews.
>
>>Another possibility might be to do an XPAT search for your idtoken
>>on open.  Since XPAT is a major hog of server resources, this isn't
>>terribly likely either. 
>
><back of napkin mode>
>
>So what we really want to do is lobby the server writers to create
>an extension to maintain a database of idtokens to watch for, and to
>report the contents of this database (keyed on idtoken) upon
>request. When we post an article, the server can register the
>idtoken as something to watch for whenever it receives new articles,
>and the registration expires after some configurable period.
>
></back of napkin mode>

<pokerface>

Hey! It could happen!

</pokerface>



-- 
Ross Presser * ross_presser@imtek.com
'"Stuck" is not a state of being unable to solve a puzzle. "Stuck" is
a state of *believing* that you are unable to solve a puzzle.'
- Andrew "Zarf" Plotkin, waxing philosophical again

Re: Xnews follow-up notification ?
#46612
Author: J. B. Moreno
Date: Fri, 26 May 2000 00:00
38 lines
2371 bytes
Kenneth Porter <shiva@well.com> wrote:

> rpresser@NOSPAMimtek.com.invalid (Ross Presser) wrote in 
> <8F32634E9pt101594@207.211.168.97>:
> 
> >alt.distinguished.bart@[NoSpam]cts-bv.nl (Bart
> >Lagerweij).wrote.posted.offered: 
> >
> >>But I wonder if xnews can notify me if someone followsup to a
> >>posting of mine, without me having to open the newsgroup in xnews.
> 
> >Another possibility might be to do an XPAT search for your idtoken on
> >open.  Since XPAT is a major hog of server resources, this isn't
> >terribly likely either. 
> 
> <back of napkin mode>
> 
> So what we really want to do is lobby the server writers to create an
> extension to maintain a database of idtokens to watch for, and to report
> the contents of this database (keyed on idtoken) upon request. When we post
> an article, the server can register the idtoken as something to watch for
> whenever it receives new articles, and the registration expires after some
> configurable period.
> 
> </back of napkin mode>


A more reasonable hope would be for XPAT to be optimized so that it
worked faster and took less resources.

Still you're suggestion isn't really as far fetched as you might think,
there is already a standard way of creating a message-id that would
allow for that (the <unique%email@isp.com> format).

-- 
John B. Moreno

Re: Xnews follow-up notification ?
#46617
Author: Andrew
Date: Sat, 27 May 2000 00:00
23 lines
2009 bytes
In article <1eb9n93.6zm4ecsdufpcN%planb@newsreaders.com>, J. B. Moreno wrote:
>Search for HEADERS and curt welch in news.software.nntp, it's not been
>written up as a RFC, just something that has been batted around
>(although curt has implemented it, I'm probably the only person that
>ever uses it and I have to do so by telnet).
>
>headers 1- from user-agent:NewsHound?0*

two things just sprung to mind.

a) should there be a way to use a header for selection of data but not have
it returned in the output.

b) should there be a distinction between real headers and pseudo-headers.
Currently this distinction is blurred for XHDR, with clients expecting
XHDR Lines and XHDR Bytes to work. I think that real headers and pseudo-
headers should have separate namespaces, if possible.

-- 
Andrew, Supernews (a service of Critical Path, Inc.)
http://www.supernews.com - UK and US individual and corporate NNTP services

Re: Xnews follow-up notification ?
#46618
Author: J. B. Moreno
Date: Sat, 27 May 2000 00:00
27 lines
2131 bytes
Murray Peterson <mwp@home.com.invalid> wrote:

> andrew@supernews.com (Andrew) wrote:
> 
> >Of course, the proposed HEADERS extension that's been batted
> >around in n.s.nntp a few times would be even better. I am
> >seriously contemplating doing a feasibility check of that once our
> >current rollout is complete (I can't risk trashing my development
> >spool right now, I still need to clone off a few more copies of
> >it). 
> 
> I missed this proposal entirely.  Could you direct me to the relevant
> RFC (or articles)?  Thanks.

Search for HEADERS and curt welch in news.software.nntp, it's not been
written up as a RFC, just something that has been batted around
(although curt has implemented it, I'm probably the only person that
ever uses it and I have to do so by telnet).

headers 1- from user-agent:NewsHound?0*

(searching for a post by a user of NewsHound).

-- 
John B. Moreno

Re: Xnews follow-up notification ?
#46620
Author: Murray Peterson
Date: Sat, 27 May 2000 00:00
21 lines
1632 bytes
andrew@supernews.com (Andrew) wrote:

>In article <1eb8qlt.1s5z5uu1rag5spN%planb@newsreaders.com>, J. B.
>Moreno wrote: 
>>A more reasonable hope would be for XPAT to be optimized so that
>>it worked faster and took less resources.
>
>XPAT on overview headers, like References:, is probably about as
>efficient on most servers as it could be.

Agreed.  About the only change I would like on the server side would 
be the addition of Path: to the Xover header list.  Makes filtering 
the pure spam sites rather easier...


-- 
Murray Peterson
Email: murray_peterson@home.com (remove underscore)
URL:   http://www.members.home.net/murraypeterson

Re: Xnews follow-up notification ?
#46621
Author: Murray Peterson
Date: Sat, 27 May 2000 00:00
19 lines
1728 bytes
vegased@bigfoot.com (Ed) wrote:

>Actually would you not get this done more cleanly at the server? 
>Does your server run Cleanfeed and NoCeM?  If it does, then these
>'should' be dropping much of the garbage even before it reaches
>your server.  I'll bet that your server is not using either, or
>not using them to their full potential.

I am on @home, and as far as I can tell, they don't do much of 
anything with their feed.  Or if they do something, they aren't 
telling us users; I guess we just aren't intelligent enough to be 
told...

-- 
Murray Peterson
Email: murray_peterson@home.com (remove underscore)
URL:   http://www.members.home.net/murraypeterson

Re: Xnews follow-up notification ?
#46624
Author: Murray Peterson
Date: Sat, 27 May 2000 00:00
19 lines
1653 bytes
andrew@supernews.com (Andrew) wrote:

>Of course, the proposed HEADERS extension that's been batted
>around in n.s.nntp a few times would be even better. I am
>seriously contemplating doing a feasibility check of that once our
>current rollout is complete (I can't risk trashing my development
>spool right now, I still need to clone off a few more copies of
>it). 

I missed this proposal entirely.  Could you direct me to the relevant 
RFC (or articles)?  Thanks.


-- 
Murray Peterson
Email: murray_peterson@home.com (remove underscore)
URL:   http://www.members.home.net/murraypeterson

Re: Xnews follow-up notification ?
#46625
Author: Andrew
Date: Sat, 27 May 2000 00:00
24 lines
2059 bytes
In article <8F40CCF87farkle@24.64.2.57>, Murray Peterson wrote:
>>XPAT on overview headers, like References:, is probably about as
>>efficient on most servers as it could be.
>
>Agreed.  About the only change I would like on the server side would 
>be the addition of Path: to the Xover header list.  Makes filtering 
>the pure spam sites rather easier...

Path headers are a bit big to justify returning them in the xover output;
you're talking about nearly doubling the bytecount. Keeping them in the
index so that they can be returned via XHDR or XPAT with the same
efficiency as the normal overview headers is much more feasible.

Of course, the proposed HEADERS extension that's been batted around in
n.s.nntp a few times would be even better. I am seriously contemplating
doing a feasibility check of that once our current rollout is complete
(I can't risk trashing my development spool right now, I still need to
clone off a few more copies of it).

-- 
Andrew, Supernews (a service of Critical Path, Inc.)
http://www.supernews.com - UK and US individual and corporate NNTP services

Re: Xnews follow-up notification ?
#46641
Author: Andrew
Date: Mon, 29 May 2000 00:00
21 lines
1815 bytes
In article <959622456.707500@news.netscum.dk>, Jeremy wrote:
>Andrew <andrew@supernews.com> wrote:
>> b) should there be a distinction between real headers and pseudo-headers.
>> Currently this distinction is blurred for XHDR, with clients expecting
>> XHDR Lines and XHDR Bytes to work. I think that real headers and pseudo-
>> headers should have separate namespaces, if possible.
>
>I don't see the need for that, either.  Would there be a case where a
>client might use "Bytes" for something else, and you'd want both?

There are already cases where people are adding additional pseudo-headers
to overview (e.g. the keyword generation stuff in INN).

What I don't like is the confusion between "real" headers and
locally-generated overview information.

-- 
Andrew, Supernews (a service of Critical Path, Inc.)
http://www.supernews.com - UK and US individual and corporate NNTP services

Re: Xnews follow-up notification ?
#46647
Author: Jeremy
Date: Mon, 29 May 2000 00:00
23 lines
1635 bytes
Andrew <andrew@supernews.com> wrote:

> two things just sprung to mind.
> 
> a) should there be a way to use a header for selection of data but not have
> it returned in the output.

I don't think that's necessary.  Sounds like unneeded overcomplication to
me.  (Indeed, I'd be happy even without the pattern matching stuff at all,
but if that doesn't make it a nightmare to implement, it would be handy.)

> b) should there be a distinction between real headers and pseudo-headers.
> Currently this distinction is blurred for XHDR, with clients expecting
> XHDR Lines and XHDR Bytes to work. I think that real headers and pseudo-
> headers should have separate namespaces, if possible.

I don't see the need for that, either.  Would there be a case where a
client might use "Bytes" for something else, and you'd want both?

-- 
Jeremy  (  jeremy@exit109.com  |  bofh@netscum.dk  )

Re: Xnews follow-up notification ?
#46677
Author: Andrew
Date: Tue, 30 May 2000 00:00
30 lines
2102 bytes
In article <959646193.354759@news.netscum.dk>, Jeremy wrote:
>Andrew <andrew@supernews.com> wrote:
>
>> There are already cases where people are adding additional pseudo-headers
>> to overview (e.g. the keyword generation stuff in INN).
>
>How do server-generated Keywords pseudo-headers interact with client-supplied
>Keywords headers?

The server-generated stuff gets stuck on the end. (The article itself isn't
modified, only the overview.)

Though I'm unsure of the general usefulness of this particular hack.

>> What I don't like is the confusion between "real" headers and
>> locally-generated overview information.
>
>Unfortunately, it looks like something that has to be lived with, because
>there isn't any distinction made by the software;

Maybe _your_ software doesn't make any distinction (though consider the
stuff in the filter interface about Lines: and __LINES__ for an example),
but mine does. I had to special-case things the other way: XHDR, etc.,
need to know that Lines and Bytes are not "real" headers.

-- 
Andrew, Supernews (a service of Critical Path, Inc.)
http://www.supernews.com - UK and US individual and corporate NNTP services

Re: Xnews follow-up notification ?
#46680
Author: Sven Paulus
Date: Tue, 30 May 2000 00:00
20 lines
2928 bytes
In news.software.nntp Andrew <andrew+news@supernews.com> wrote:
|>>How do server-generated Keywords pseudo-headers interact with client-supplied
|>>Keywords headers?
|> The server-generated stuff gets stuck on the end. (The article itself isn't
|> modified, only the overview.)
|> Though I'm unsure of the general usefulness of this particular hack.

I wonder why this hasn't already been removed from INN.
I get sick when I see something like this _hardcoded_ in innd/art.c:

static      char    *elim_regexp = "^\\([-+/0-9][-+/0-9]*\\|.*1st\\|.*2nd\\|.*3rd\\|.*[04-9]th\\|about\\|after\\|ago\\|all\\|already\\|also\\|among\\|and\\|any\\|anybody\\|anyhow\\|anyone\\|anywhere\\|are\\|bad\\|because\\|been\\|before\\|being\\|between\\|but\\|can\\|could\\|did\\|does\\|doing\\|done\\|dont\\|during\\|eight\\|eighth\\|eleven\\|else\\|elsewhere\\|every\\|everywhere\\|few\\|five\\|fifth\\|first\\|for\\|four\\|fourth\\|from\\|get\\|going\\|gone\\|good\\|got\\|had\\|has\\|have\\
|having\\|he\\|her\\|here\\|hers\\|herself\\|him\\|himself\\|his\\|how\\|ill\\|into\\|its\\|ive\\|just\\|kn[eo]w\\|least\\|less\\|let\\|like\\|look\\|many\\|may\\|more\\|m[ou]st\\|myself\\|next\\|nine\\|ninth\\|not\\|now\\|off\\|one\\|only\\|onto\\|our\\|out\\|over\\|really\\|said\\|saw\\|says\\|second\\|see\\|set\\|seven\\|seventh\\|several\\|shall\\|she\\|should\\|since\\|six\\|sixth\\|some\\|somehow\\|someone\\|something\\|somewhere\\|such\\|take\\|ten\\|tenth\\|than\\|that\\|the\\|their\\
!|them\\|then\\|there\\|therell\\|theres\\|these\\|they\\|thing\\|things\\|third\\|this\\|those\\|three\\|thus\\|together\\|told\\|too\\|twelve\\|two\\|under\\|upon\\|very\\|via\\|want\\|wants\\|was\\|wasnt\\|way\\|were\\|weve\\|what\\|whatever\\|when\\|where\\|wherell\\|wheres\\|whether\\|which\\|while\\|who\\|why\\|will\\|will\\|with\\|would\\|write\\|writes\\|wrote\\|yes\\|yet\\|you\\|your\\|youre\\|yourself\\)$";

Of course, there's only one language on earth ... :(

Which clients use this feature? I haven't seen one yet. The whole thing
looks like a schoolbook example of code bloat to me.

Re: Xnews follow-up notification ?
#46690
Author: Jeremy
Date: Tue, 30 May 2000 00:00
21 lines
1617 bytes
Andrew <andrew@supernews.com> wrote:

>> Unfortunately, it looks like something that has to be lived with,
>> because there isn't any distinction made by the software;
> 
> Maybe _your_ software doesn't make any distinction (though consider the
> stuff in the filter interface about Lines: and __LINES__ for an example),
> but mine does. I had to special-case things the other way: XHDR, etc.,
> need to know that Lines and Bytes are not "real" headers.

I meant, there isn't a distinction in the interface.  When you ask for
XOVER, the output doesn't differentiate between "real" headers and "fake"
headers.  And since the client can't tell the difference, then what *is*
the difference, except within the server implementation?

When would a client need to know that a header isn't really a header?

-- 
Jeremy  (  jeremy@exit109.com  |  bofh@netscum.dk  )

Re: Xnews follow-up notification ?
#46691
Author: Jeremy
Date: Tue, 30 May 2000 00:00
19 lines
1368 bytes
Andrew <andrew@supernews.com> wrote:

> There are already cases where people are adding additional pseudo-headers
> to overview (e.g. the keyword generation stuff in INN).

How do server-generated Keywords pseudo-headers interact with client-supplied
Keywords headers?

> What I don't like is the confusion between "real" headers and
> locally-generated overview information.

Unfortunately, it looks like something that has to be lived with, because
there isn't any distinction made by the software; each pseudo-header would
have to be a special case.

-- 
Jeremy  (  jeremy@exit109.com  |  bofh@netscum.dk  )

Re: Xnews follow-up notification ?
#46710
Author: Karl Kleinpaste
Date: Wed, 31 May 2000 00:00
58 lines
4493 bytes
Sven Paulus <sven@karlsruhe.org> writes:
>> Which clients use this feature? I haven't seen one yet.

Russ Allbery <rra@stanford.edu> writes:
> Any client that can do searches and narrowings based on overview
> data can use it.  Gnus makes very good use of it, for example, if
> you set things up right.

I wrote the keyword generator.  It was first created 3� years ago for
INN 1.5 following discussion with co-workers over the difficulty of
keeping track of threads when actual content diverges widely from
e.g. Subject indications, which is positively routine.  It is
remarkably successful at detecting things which are interesting to the
reader for whatever reason.  Notably, I hadn't seen this discussion at
all previously, because I score down on "xnews", but Russ' mention of
Gnus, caught by the keyword generator and scored up in my Gnus
environment, raised it to my awareness.  This is _exactly_ what
server-generated keywords are good for: Although users can add a
Keywords header any time they think of it, it is unused in practice.

If Sven finds the hard-coded English stopword list painful, he can
work up a patch to remove the stopword list to an external config
file.  That would probably take an hour or two, if anyone was
motivated enough actually to do it, but of course it's easier to bitch
than code.

However, it appears that I am thus far the only person on the planet
using my own code here, considering that I reported and fixed a
fundamental misplacement of the code in 2.3beta in late April.  When
the code moved from 1.7 into 2.x, evidently it was not done cleanly (I
wasn't involved), and I never bothered to upgrade to 2.x myself until
2.3 went to beta.  Since no one else uses it so far, there's very
little motivation to work up such a patch.

And while I'm on the subject, the Keywords header's lack of use in
practice is also something addressed by Gnus, using an additional
module I wrote for Gnus at the same time as I did server-generated
keywords, messkeyw.el.  It hooks into message generation just before
sending, to create a Keywords header for the user, with editable
confirmation.  INN's interaction with this separates the user's
Keywords from its own generated set with a highly arbitrary \377
character, as a simplistic indication of which set is which.  (It is
theoretically useful to distinguish between the two sets.)  This
module works as well for mail -- it will hook into message acquisition
as well, so that every incoming message gets a set generated by Gnus
itself -- so that I get the same effect of server-generated keywords
in mail as well as news.  You'd be amazed at what automatically
generated keywords will do for you.

Perhaps significantly for Sven's annoyance, messkeyw.el has
configurable (customizable) variables for the stopword list, and the
base list is initialized from an English-specific list, documented as
such.  Lisp is more readily configured than C.

"Setting things up right" for INN is as easy as "keywords: true" in
inn.conf and "Keywords:full" in overview.fmt.

Re: Xnews follow-up notification ?
#46718
Author: Karl Kleinpaste
Date: Wed, 31 May 2000 00:00
18 lines
2023 bytes
Jeremy <bofh@netscum.dk> writes:
> When you ask for
> XOVER, the output doesn't differentiate between "real" headers and "fake"
> headers.  And since the client can't tell the difference, then what *is*
> the difference, except within the server implementation?

> When would a client need to know that a header isn't really a header?

In the case of Keyword auto-generation, the distinction is at least
theoretically useful if the reader wants to note the difference
between what the user thought was an important keyword, versus what
INN arbitrarily generated out of the text: One would give more
consideration to what the user deliberately put in place.

So INN's keyword generator separates its results from the user's
supplied Keywords data with a highly arbitrary \377 character.

Re: HEADERS comand (was: Re: Xnews follow-up notification ?)
#46727
Author: J. B. Moreno
Date: Wed, 31 May 2000 00:00
89 lines
5173 bytes
Curt Welch <curt@kcwc.com> wrote:

> andrew@supernews.com wrote:
> > In article <1eb9n93.6zm4ecsdufpcN%planb@newsreaders.com>, J. B. Moreno
> > wrote:
> > >Search for HEADERS and curt welch in news.software.nntp, it's not been
> > >written up as a RFC, just something that has been batted around
> > >(although curt has implemented it, I'm probably the only person that
> > >ever uses it and I have to do so by telnet).
> > >
> > >headers 1- from user-agent:NewsHound?0*
> 
> BTW, did you every find that elusive version of NewsHound?

Nope, still looking.

> > two things just sprung to mind.
> >
> > a) should there be a way to use a header for selection of data but not
> > have it returned in the output.
> 
> I too spent some time thinking about that.  But I concluded it wasn't
> that important and would be fine to force the user to receive copies
> of the header if he wanted to select on it.  Many times they will want
> to see the header anyway (for example to make sure it was really what
> they were looking for).

The only time I see finding but not returning as being useful would be
for References scanning, and even then -- there would be several common
searches, first id is mine, contains my id, and id is within X of the
last id.  And it seems to me that these are better searched by the
client (to keep him from asking from them one after another).

-snip-
> And that opens up the idea of supporting multiple wildmats per header to
> mean OR instead of the default AND:
> 
>   headers 1- From:*curt* From:*bob* subject:*Xnews*
> 
> which would mean (From curt OR From bob) AND subject Xnews.
> 
> This would all be nice, but is it going too far???

Yes.

> The real question here is whether support of wildmats here is really the
> right thing to do.  I'm beginning to think it isn't.  There's no question
> that it's both easy to implement, and useful.  But there's real potential
> for server abuse here.
-snip-
> Even without the wildmat extension, the HEADERS command has the problem of
> forcing the server to read and processes a lot more data than what it has
> to send to the client.  But without wildmat, the client is forced to get
> at least some data for every article the server has to deal with. This
> keeps the ratio of server read data to transmitted data to a reasonable
> level.  But once you add wildmat, then the ratio can get way out of hand.
> (scan 10M articles but transmit the Message-ID of only one).

I don't see a high ratio of server read to transmitted as a problem, in
fact I think it's a good thing -- take your example of 10M articles but
only returning 1 id, this is obviously better than scanning a million
and returning a 100 thousand and then the client only using 1 id.

> So, my current thought is that we should probably drop the wildmat support
> from HEADERS.  Force the client to read the data and do any of the wildmat
> types of scanning on the client side.

I would suggest support for wildmat's but not to get fancy about it.
 
> > b) should there be a distinction between real headers and
> > pseudo-headers. Currently this distinction is blurred for XHDR, with
> > clients expecting XHDR Lines and XHDR Bytes to work. I think that real
> > headers and pseudo- headers should have separate namespaces, if
> > possible.
> 
> If it's only Bytes: and Lines: we are talking about, then I don't see this
> as being important enough to fix.  But if people continue to add new
> pseudo-headers, then it could be a problem.  So I wouldn't mind making the
> distinction.
> 
> How about creating the convention that pseudo-headers start with a :?

It might be a bit confusing, but if it's going to be done, now's the
time to do it.

-- 
John B. Moreno

Re: Xnews follow-up notification ?
#46731
Author: Curt Welch
Date: Wed, 31 May 2000 00:00
22 lines
1928 bytes
Jeremy <bofh@netscum.dk> wrote:
> Andrew <andrew@supernews.com> wrote:

> > b) should there be a distinction between real headers and
> > pseudo-headers. ....

> I don't see the need for that, either.  Would there be a case where a
> client might use "Bytes" for something else, and you'd want both?

No, since Bytes: is not a header you see in real articles.  And with
Lines:, there's no real issue about the content.  If you want to know the
true number of lines in an article, you would want to see the server's
calculated version of the header.  But for filtering spam, it would be
handy to have access to both the calculated value and the real header from
the article since missing or bogus lines headers can be a useful clue for
spotting unwanted articles.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: HEADERS comand
#46734
Author: Sven Paulus
Date: Wed, 31 May 2000 00:00
50 lines
3294 bytes
In news.software.nntp Curt Welch <curt@kcwc.com> wrote:
|> And that opens up the idea of supporting multiple wildmats per header to
|> mean OR instead of the default AND:
|>   headers 1- From:*curt* From:*bob* subject:*Xnews*
|> which would mean (From curt OR From bob) AND subject Xnews.
|> This would all be nice, but is it going too far???

How about delimiting multiple patterns with ',' in this case?

headers 1- From:*curt,*bob* Subject:*Xnews*

headers 1- Subject:*$50\,000$* Subject:*money*,*geld*
 (-> Subject: 50.000 AND (Subject: money OR Subject: geld))
 (the included ',' is escaped)

|> But when you allow wildmats like the above, it opens up the posibility of
|> the clients doing some really stupid things (in the overall sense), just
|> because it makes live a little easier on their end.
|> But if the client starts to force the server to scan the same overview data
|> multiple times, then there comes a point where this is just abuse.  The
|> client should have downloaded the data once, and then searched it locally
|> multiple times.

Usually today newsservers have much idle CPU ressources since the
typical bottleneck is IO. And wildmat() is fast, so even applying
multiple wildmatches on a single overview line isn't too expensive.

With today's XPAT on non-overview-headers you can hurt a newsserver
much more (e.g. XPAT PATH 1- *fdfkasdgfhjka* doesn't produce any output
but puts quite a lot of load onto the server when applied on groups
with heavy traffic). Of course you can disable XPAT for non-overview
headers.

|> For example, think of a newsreader which allows you to create "pseudo
|> groups" by doing wildmat scans for articles in multiple groups.  For
|> example, a user could create a personal "XNEWS" group by combining articles
|> from news.sowtware.* which matched "Subject:*xnews*".  And he could create
|> a gravity group doing *gravity* etc.  And this would end up causing the
|> client to do multiple wildmat scans of the same groups.  So the server is
|> forced to read and processes the same overview data multiple times for the
|> client.

If the delay between each scan run is small enough, chances are good
that the data is still in the OS's buffer cache.

Sven



Re: Xnews follow-up notification ?
#46735
Author: Russ Allbery
Date: Wed, 31 May 2000 00:00
18 lines
1600 bytes
In news.software.nntp, Sven Paulus <sven@karlsruhe.org> writes:

> I wonder why this hasn't already been removed from INN.

Because it's not really hurting anything (although it's going to be a
configure-time option and probably off by default) and it was contributed
code and it works well for some purposes.

> Which clients use this feature? I haven't seen one yet.

Any client that can do searches and narrowings based on overview data can
use it.  Gnus makes very good use of it, for example, if you set things up
right.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

Re: Xnews follow-up notification ?
#46739
Author: Brian Edmonds
Date: Wed, 31 May 2000 00:00
22 lines
1858 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Karl Kleinpaste <karl@charcoal.com> writes:
> However, it appears that I am thus far the only person on the planet
> using my own code here

I like the concept, and will probably enable it on the server I'm
setting up at my new job.

Brian.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.5 and Gnu Privacy Guard <http://www.gnupg.org/>

iD8DBQE5NWIncCEFQUX5+OwRAqbwAJ9hGM57d8Jn0cJXLPZ/wLPovfLCuACgxPAN
ELN3Kn+91sczxArohRxwYbI=
=bPXj
-----END PGP SIGNATURE-----

Re: Xnews follow-up notification ?
#46740
Author: Karl Kleinpaste
Date: Wed, 31 May 2000 00:00
15 lines
2043 bytes
Brian Edmonds <brian@gweep.bc.ca> writes:
> I like the concept, and will probably enable it on the server I'm
> setting up at my new job.

I would be pleased to see more users of it; it's been very helpful to
me for several years now.  If you encounter problems or have
suggestions, please let me know personally.  As noted, however, be
aware that Gnus is the only client known to put such stuff to use
right now -- I know of no other clients which expect to handle
additional overview data beyond the 9th field (Xref).

When you configure, watch to see that a regex lib was found, and that
"#define DO_KEYWORDS 1" ends up in include/config.h.

Re: Xnews follow-up notification ?
#46741
Author: bill davidsen
Date: Wed, 31 May 2000 00:00
40 lines
2965 bytes
In article <vxkya4qc1o7.fsf@mesquite.charcoal.com>,
Karl Kleinpaste  <karl@charcoal.com> wrote:

| However, it appears that I am thus far the only person on the planet
| using my own code here, considering that I reported and fixed a
| fundamental misplacement of the code in 2.3beta in late April.  When
| the code moved from 1.7 into 2.x, evidently it was not done cleanly (I
| wasn't involved), and I never bothered to upgrade to 2.x myself until
| 2.3 went to beta.  Since no one else uses it so far, there's very
| little motivation to work up such a patch.

  No, but the obvious uses may be in servers so small that they are
still running 1.5.x today. I've never tried it on a full newsfeed, but
it does work nicely on a small set of groups, and even better on a mail
to news gateway machine.

  That said, I would probably use it more on real servers if it were in
some way easily tied only to a subset of groups, but unless I missed
something it isn't. I can solve this by running a server just for the
subset, but the average site may not be in a position to do that. I
would love to be able to use a newsfeeds line to select what I want to
rewrite, and then run a separate process to do the job. Sort of like
what overchan does, but feed articles for one group set to a version
running with the keyword generation turned on.

  I admit most of my machines have SMP and will really run better if
this is off in another process(or).

  Anyway, thanks for a neat feature, and I can see that you would
hesitate to do the change. I might look at it over 4th of July, the
syntax is obvious, just change the inn.conf to take a filename instead
of only true or false for the 'keyword:' option.

-- 
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: HEADERS comand
#46746
Author: Andrew
Date: Wed, 31 May 2000 00:00
19 lines
1997 bytes
In article <Lisa-Christina_Oryczcak@psychiatrist.pool-28.oops.inka.de>,
Sven Paulus wrote:
>Usually today newsservers have much idle CPU ressources since the
>typical bottleneck is IO.

The only reason my server has an I/O bottleneck is because it's doing
3x as much I/O as it should be, and I haven't figured out why yet. When
that's fixed, the next bottleneck will probably be CPU (kernel time).

However, we do support XPAT on overviews, and I don't really see HEADERS
as being any different to that, given that we would probably only
implement HEADERS at all if we can ensure that it is feasible to put all
the headers into the overview.

-- 
Andrew, Supernews (a service of Critical Path, Inc.)
http://www.supernews.com - UK and US individual and corporate NNTP services

Re: Xnews follow-up notification ?
#46747
Author: Russ Allbery
Date: Wed, 31 May 2000 00:00
15 lines
1710 bytes
Karl Kleinpaste <karl@charcoal.com> writes:

> When you configure, watch to see that a regex lib was found, and that
> "#define DO_KEYWORDS 1" ends up in include/config.h.

In the 2.4 development cycle, I'm going to try to fix the configure stuff
for the keywords code.  Right now it makes no sense at all (and there's a
comment in configure.in to that effect), which wasn't Karl's fault.  I
like the idea too, actually, and would probably use it for any small-feed
server where the keyword generation wouldn't take excessive time.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

HEADERS comand (was: Re: Xnews follow-up notification ?)
#46749
Author: Curt Welch
Date: Wed, 31 May 2000 00:00
142 lines
7949 bytes
andrew@supernews.com wrote:
> In article <1eb9n93.6zm4ecsdufpcN%planb@newsreaders.com>, J. B. Moreno
> wrote:
> >Search for HEADERS and curt welch in news.software.nntp, it's not been
> >written up as a RFC, just something that has been batted around
> >(although curt has implemented it, I'm probably the only person that
> >ever uses it and I have to do so by telnet).
> >
> >headers 1- from user-agent:NewsHound?0*

BTW, did you every find that elusive version of NewsHound?

> two things just sprung to mind.
>
> a) should there be a way to use a header for selection of data but not
> have it returned in the output.

I too spent some time thinking about that.  But I concluded it wasn't
that important and would be fine to force the user to receive copies
of the header if he wanted to select on it.  Many times they will want
to see the header anyway (for example to make sure it was really what
they were looking for).

But, I support the concept of negation (!) in the wildmat, and in that
form, there are many times when it would be quite normal for the user to
want to exclude that header from the output.  For example, when filtering
out unwanted articles based on Path.

And then there's the "show me all articles which do not have an X-Meow:
header" example which looks like this:

  headers 1- x-meow:! from subject

In this example you get an extra blank field in the output which
is guaranteed never to contain data.  That just seemed wrong.  So I
thought that maybe for this special case the field should automatically be
left out of the output. But then I decided that made things too complex and
it was better to just include the field all the time even if you knew it
was going to be empty (it is only one extra byte per record returned).

But, if you wanted to give the user control over what was selected
on vs what was output, I think the simple way to do that would be to
change the semantics so that any field with a wildmat pattern would
never be included in the output.  So if you wanted to select on a field
and have it included in the output, you would be required to list it twice:

  headers 1- From:*curt* From Subject

When typing commands by hand this format would be a pain, but for computer
generated commands, it would work fine.

And that opens up the idea of supporting multiple wildmats per header to
mean OR instead of the default AND:

  headers 1- From:*curt* From:*bob* subject:*Xnews*

which would mean (From curt OR From bob) AND subject Xnews.

This would all be nice, but is it going too far???

The real question here is whether support of wildmats here is really
the right thing to do.  I'm beginning to think it isn't.  There's no
question that it's both easy to implement, and useful.  But there's
real potential for server abuse here.

For the rest of the NNTP protocol (less XPAT and some versions of NEWNEWS),
the load any one user can put on a server is directly proportional to the
amount of data they are sucking from the server.  And because pulling down
lots of data slows the client down as much as the server, the people that
write the clients are motivated to do whatever they can to minimize the
amount of data they move - which is good for both the server and the
client.

But when you allow wildmats like the above, it opens up the posibility of
the clients doing some really stupid things (in the overall sense), just
because it makes live a little easier on their end.

If the client is going to do a wildmat match on the header after it's
downloaded, and then throw it away for all headers which don't match, it
would be better if the server did that for him, so the bandwidth wasn't
wasted transfering unwanted data.

But if the client starts to force the server to scan the same overview data
multiple times, then there comes a point where this is just abuse.  The
client should have downloaded the data once, and then searched it locally
multiple times.

For example, think of a newsreader which allows you to create "pseudo
groups" by doing wildmat scans for articles in multiple groups.  For
example, a user could create a personal "XNEWS" group by combining articles
from news.sowtware.* which matched "Subject:*xnews*".  And he could create
a gravity group doing *gravity* etc.  And this would end up causing the
client to do multiple wildmat scans of the same groups.  So the server is
forced to read and processes the same overview data multiple times for the
client.

Even without the wildmat extension, the HEADERS command has the problem
of forcing the server to read and processes a lot more data than what
it has to send to the client.  But without wildmat, the client is forced
to get at least some data for every article the server has to deal with.
This keeps the ratio of server read data to transmitted data to a
reasonable level.  But once you add wildmat, then the ratio can get way out
of hand. (scan 10M articles but transmit the Message-ID of only one).

So, my current thought is that we should probably drop the wildmat support
from HEADERS.  Force the client to read the data and do any of the wildmat
types of scanning on the client side.

> b) should there be a distinction between real headers and pseudo-headers.
> Currently this distinction is blurred for XHDR, with clients expecting
> XHDR Lines and XHDR Bytes to work. I think that real headers and pseudo-
> headers should have separate namespaces, if possible.

If it's only Bytes: and Lines: we are talking about, then I don't see
this as being important enough to fix.  But if people continue to add new
pseudo-headers, then it could be a problem.  So I wouldn't mind making the
distinction.

How about creating the convention that pseudo-headers start with a :?

As in:

  Headers 1- :lines lines from subject

":lines" would be the locally calculated lines value, and "lines" would
be the real "Lines" header from the article.

For backward compatibility, "lines" and "bytes" would still have to be
supported in xhdr I assume even if :lines and :bytes worked there, but we
could fix this issue in the HEADERS command and force people to ask for
:lines and :bytes there.

Now that I think about this, I see multiple uses for special pseudo headers
that I hadn't thought about before.  For example, servers could create
special headers to return internal information that would be useful for the
local admins, like :token, or :spool-file, or :spool-file-offset, etc.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: HEADERS comand (was: Re: Xnews follow-up notification ?)
#46787
Author: Jeremy
Date: Sat, 03 Jun 2000 00:00
27 lines
1684 bytes
Curt Welch <curt@kcwc.com> wrote:

> And that opens up the idea of supporting multiple wildmats per header to
> mean OR instead of the default AND:
> 
>   headers 1- From:*curt* From:*bob* subject:*Xnews*
> 
> which would mean (From curt OR From bob) AND subject Xnews.
> 
> This would all be nice, but is it going too far???

I think that it is.  I really don't see the need for OR, as it can
be accomplished with a second command.  No need to overcomplicate
things.

> So, my current thought is that we should probably drop the wildmat support
> from HEADERS.  Force the client to read the data and do any of the wildmat
> types of scanning on the client side.

I'd be happy without wildmat support.  My whole reason for wanting this
was to control which headers are retrieved, not necessarily for searching
on the server side.

-- 
Jeremy  (  jeremy@exit109.com  |  bofh@netscum.dk  )

Re: HEADERS comand (was: Re: Xnews follow-up notification ?)
#46956
Author: bill davidsen
Date: Mon, 19 Jun 2000 00:00
27 lines
2245 bytes
In article <960013759.506231@news.netscum.dk>, Jeremy  <bofh@netscum.dk> wrote:

| > So, my current thought is that we should probably drop the wildmat support
| > from HEADERS.  Force the client to read the data and do any of the wildmat
| > types of scanning on the client side.
| 
| I'd be happy without wildmat support.  My whole reason for wanting this
| was to control which headers are retrieved, not necessarily for searching
| on the server side.

  Think about the reader on a dial-up line, which is still probably most
people with a national ISP. They probably would really appreciate
features which reduce the need for bandwidth.

  Just bringing out the point, I'm mildly in favor of the wildmat,
neutral on the AND/OR issue. The only reason I like it at all is that it
might make a good feature with other commands.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  "Doing interesting things with little computers since 1979"(tm)
It doesn't bother me that people make flavored yogurt with fruits. It
doesn't bother me that someone makes carmel broccoli yogurt. It doesn't
even bother me that people buy it to rub on each other's naked bodies.
What DOES bother me is that people buy it to EAT!

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