🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #9098

Re: Suggested API for querying Usenet servers

#9098
From: Mary Conner
Date: Sun, 07 Jul 1996 00:00
72 lines
4194 bytes
In article <slrn4u0au3.sj4.jbn@mystery-train.cu-online.com>,
J.B. Nicholson-Owens <jbn@mystery-train.cu-online.com> wrote:
>Keep in mind, this is a first attempt at something that
>looks and feels like SQL syntactically but is tailored for Usenet.  

A darn good first draft too.  I have some suggestions.  :)

>  SELECT <header>[, <header>...] FROM <newsgroup>[, <newsgroup>...]
>    [WHERE <condition>...]
>    [ORDER BY <header> [DESCENDING][, <header> [DESCENDING]...]]

Since Newsgroups: is just another header, the FROM part is strictly
not necessary, but I can see the usefulness in making the search more
efficient by making sure the server only searches in certain
directories.  Perhaps make it impossible to specify the Newsgroups:
header on the left hand side in the WHERE clause?  Otherwise I can see
some idiot newsreader writer implementing their searching like SELECT
foo FROM * (WHERE newsgroups=rec.humor AND from=bozo@clown.com), which
would really put a strain on servers unless they are made smarter than
they have to be.

My personal preference would be to not do any sorting in the server
itself and let client software handle it.

A means to easily invert the select (i.e. an exclusion instead of a selection)
might be a good feature.  Since I've only used a superset of SQL, I am not
sure if the NOT(<condition>) construct is allowed in strict SQL.

From the point of view of a newsreader, I do not see too much use
being got out of being able to select which "headers" are returned.  I
see client software wanting one of three things returned, and rarely
if ever would want anything else.  Those three things are "entire
article", "message-id", and "article number".  In fact, given the
tendency for GUI newsreader authors to simply neglect to show users
*any* headers, I'd hesitate to do anything that would encourage this
practice.

However, it is possible that this could be useful in server to server
communications, such as negotiating which headers the feeder should
supply so that the feedee can decide which articles to accept and which
to reject.  I'll have to think about this some more.

For my own work the things that I am most concerned with are the pattern
matching specifications.  Full reg-exp searches are a necessity, and it
would be extremely nice to be able to specify that idiotic spam that
went around where the spammer used the last three characters of the
newsgroup name as part of the From: and the Subject: of the posting,
obviously in an attempt to defeat both killfiles and the spam cancellers.

I'm extremely leary of making CONTAINS so easy to use, since searches
that are pegged to either the start or the end of a string are far more
efficient.  I'd prefer to require syntax like email-address=*@blarg.com*,
since it would be more likely that the user would then use *@blarg.com
instead of contains(blarg.com).

I can see it useful to have a special construct to be able to specify
original articles or followups in a subject search without having to
use a contains.  For example, in one group, I have to have both ^OT
and ^Re: OT in my killfile because for whatever reason the group
decided on OT to key certain articles, and OT is too common a string
to simply specify as a generic killfile entry.  If I could simply
have some way to say, "I don't care if it has a Re: in front, but it
has to start the actual subject", life would be simpler.  Total
wishlist item, I know, but hey, we're dreaming here, aren't we?  :)


-- 
Mary Conner
trif@serv.net

Technical Details
Message-ID: <4rq965$97j@imp.serv.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <slrn4u0au3.sj4.jbn@mystery-train.cu-online.com>

Show Full Headers
Complete Article Headers
Message-ID: <4rq965$97j@imp.serv.net>
Subject: Re: Suggested API for querying Usenet servers
Date: Sun, 07 Jul 1996 00:00:00 +0000
From: trif@serv.net (Mary Conner)
References: <slrn4u0au3.sj4.jbn@mystery-train.cu-online.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 169369775
Distribution: inet
Organization: Care Bear Dismemberment Society
Reply-to: trif@serv.net
Newsgroups: news.software.nntp