Thread View: news.software.nntp
68 messages
68 total messages
Page 1 of 2
Started by Andrew Gierth
Sat, 26 Feb 2000 00:00
Page 1 of 2 • 68 total messages
[NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Andrew Gierth
Date: Sat, 26 Feb 2000 00:00
Date: Sat, 26 Feb 2000 00:00
743 lines
28998 bytes
28998 bytes
[This is one of a series of extracts from draft-ietf-nntpext-base-09.txt
which is available in full from the usual Internet-Draft archives.]
9.4 The LIST Keyword
9.4.1 LIST
LIST [ACTIVE [wildmat]]
The response to the LIST keyword with no parameters returns a
list of valid news groups and associated information. Each
news group is sent as a line of text in the following format:
group first last status
where <group> is the name of the news group, <last> is the
number of the last known article currently in that news group,
<first> is the number of the first article currently in the
news group, and <status> indicates the current status of the
group on this server. Typically, the <status> will be consist
of the US-ASCII character `y' where posting is permitted, `n'
where posting is not permitted and `m' where postings will be
forwarded to the news group moderator by the news server.
Other status strings may exist. The definition of these other
values is covered in other specifications.
The <first> and <last> fields will always be numeric. They
may have leading zeros. The <first> field corresponds to the
"reported low water mark" and the <last> field corresponds to
the "reported high water mark" described in the GROUP command
(see Section 9.1.1.1).
Note that posting may still be prohibited to a client although
the LIST command indicates that posting is permitted to a
particular news group. See the POST command for an explanation
of client prohibitions. The posting flag exists for each news
group because some news groups are moderated or are digests,
and therefore cannot be posted to; that is, articles posted to
them must be mailed to a moderator who will post them for the
original poster. This is independent of the posting
permission granted to a client by the NNTP server.
Please note that an empty list (i.e., the text body returned
by this command consists only of the terminating period) is a
possible valid response, and indicates that there are
currently no valid news groups.
If the optional matching parameter is specified, the list is
limited to only the groups that match the pattern.
Barber [Page 37]
INTERNET DRAFT November 1999
Specifying a single group is usually very efficient for the
server. Multiple groups may be specified by using wildmat
patterns (described in section 5), not regular expressions.
9.4.1.1 Responses
215 list of news groups follows
9.4.1.2 Examples
Example of LIST returning a list of news groups
[S] 200 NNTP Service Ready
[C] LIST
[S] 215 list of news groups follows
misc.test 3000234 3002322 y
alt.fc-writers.recovery 1 4 y
tx.natives.recovery 56 89 y
.
Example of LIST returning no news groups
[S] 200 NNTP Service Ready
[C] LIST
[S] 215 list of news groups follows
.
9.4.2 LIST ACTIVE.TIMES
LIST ACTIVE.TIMES [wildmat]
The active.times file is maintained by some news transport
systems to contain information about when and who created a
particular news group. The format of this file generally
includes three fields. The first field is the name of the news
group. The second is the time when this group was created on
this news server measured in seconds since the start of
January 1, 1970. The third is the email address of the entity
that created the news group. When executed, the information is
displayed following the 215 response. When display is
completed, the server will send a period on a line by itself.
If the information is not available, the server will return
the 503 error response.
Barber [Page 38]
INTERNET DRAFT November 1999
If the optional matching parameter is specified, the list is
limited to only the groups that match the pattern.
Specifying a single group is usually very efficient for the
server. Multiple groups may be specified by using wildmat
patterns (described in section 5), not regular expression
9.4.2.1 Responses
215 information follows
503 program error, function not performed
9.4.2.2 Examples
Example of LIST ACTIVE.TIMES returning a list of news groups
[S] 200 NNTP Service Ready
[C] LIST ACTIVE.TIMES
[S] 215 information follows
misc.test 930445408 <creatme@isc.org>
alt.rfc-writers.recovery 930562309 <m@nowhere.to>
tx.natives.recovery 930678923 <sob@academ.com>
.
Example of LIST ACTIVE.TIMES returning an error
[S] 200 NNTP Service Ready
[C] LIST ACTIVE.TIMES
[S] 503 program error, function not performed
9.4.3 LIST DISTRIBUTIONS
LIST DISTRIBUTIONS
The distributions file is maintained by some news transport
systems to contain information about valid values for the
Distribution: line in a news article header and about what the
values mean. Each line contains two fields, the value and a
short explanation on the meaning of the value. When executed,
the information is displayed following the 215 response. When
display is completed, the server will send a period on a line
by itself. If the information is not available, the server
will return the 503 error response.
Barber [Page 39]
INTERNET DRAFT November 1999
9.4.3.1 Responses
215 information follows
503 program error, function not performed
9.4.3.2 Examples
Example of LIST DISTRIBUTIONS returning a list of news groups
[S] 200 NNTP Service Ready
[C] LIST DISTRIBUTIONS
[S] 215 information follows
usa United States of America
na North America
world All over the World
.
Example of LIST DISTRIBUTIONS returning an error
[S] 200 NNTP Service Ready
[C] LIST DISTRIBUTIONS
[S] 503 program error, function not performed
9.4.4 LIST DISTRIB.PATS
LIST DISTRIB.PATS
The distrib.pats file is maintained by some news transport
systems to contain default values for the Distribution: line
in a news article header when posting to particular news
groups. This information could be used to provide a default
value for the Distribution: line in the header when posting an
article. The information returned contains three fields
separated by colons. The first column is a weight. The second
is a group name or a wildmat pattern that can be used to match
a group name. The third is the value of the Distribution:
line that should be used when the group name matches and the
weight value is the highest. All this processing is done by
the news posting client and not by the server itself. The
server provides this information to the client for it to use
or ignore as it chooses. When executed, the information is
displayed following the 215 response. When display is
completed, the server will send a period on a line by itself.
If the information is not available, the server will return
the 503 error response.
Barber [Page 40]
INTERNET DRAFT November 1999
9.4.4.1 Responses
215 information follows
503 program error, function not performed
9.4.4.2 Examples
Example of LIST DISTRIB.PATS returning a list of news groups
[S] 200 NNTP Service Ready
[C] LIST DISTRIB.PATS
[S] 215 information follows
10:local.*:local
.
Example of LIST DISTRIB.PATS returning an error
[S] 200 NNTP Service Ready
[C] LIST DISTRIB.PATS
[S] 503 program error, function not performed
9.4.5 LIST NEWSGROUPS
LIST NEWSGROUPS [wildmat]
The newsgroups file is maintained by some news transport
systems to contain the name of each news group that is
active on the server and a short description about the
purpose of each news group. Each line in the file contains
two fields, the news group name and a short explanation of
the purpose of that news group. When executed, the
information is displayed following the 215 response. When
display is completed, the server will send a period on a
line by itself. If the information is not available, the
server will return the 503 response. If the optional
matching parameter is specified, the list is limited to only
the groups that match the pattern (no matching is done on
the group descriptions). Specifying a single group is
usually very efficient for the server, and multiple groups
may be specified by using wildmat patterns (see section 5),
not regular expressions. If nothing is matched an empty list
is returned, not an error.
9.4.5.1 Responses
Barber [Page 41]
INTERNET DRAFT November 1999
215 information follows
503 program error, function not performed
9.4.5.2 Examples
Example of LIST NEWSGROUPS returning a list of news groups
[S] 200 NNTP Service Ready
[C] LIST NEWSGROUPS
[S] 215 information follows
misc.test General Usenet testing
alt.rfc-writers.recovery RFC Writers Recovery
tx.natives.recovery Texas Natives Recovery
.
Example of LIST NEWSGROUPS returning an error
[S] 200 NNTP Service Ready
[C] LIST NEWSGROUPS
[S] 503 program error, function not performed
9.4.6 LIST OVERVIEW.FMT
LIST OVERVIEW.FMT
The overview.fmt file is maintained by some news transport
systems to contain the order in which header information is
stored in the overview databases for each news group. When
executed, news article header fields are displayed one line at
a time in the order in which they are stored in the overview
database[7] following the 215 response. When display is
completed, the server will send a period on a line by itself.
If the information is not available, the server will return
the 503 response.
If the header has the word "full" (without quotes) after the
colon, the header's name is prepended to its field in the
output returned by the server.
This is command is part of the optional OVER extension which
includes the OVER command defined in section 9.4.8. If the
OVER extension is not implemented, then this command MUST NOT
be implemented.
Barber [Page 42]
INTERNET DRAFT November 1999
9.4.6.1 Responses
215 information follows
503 program error, function not performed
9.4.6.2 Examples
Example of LIST OVERVIEW.FMT returning a list of news groups
[S] 200 NNTP Service Ready
[C] LIST OVERVIEW.FMT
[S] 215 Order of fields in overview database.
Subject:
From:
Date:
Message-ID:
.
Example of LIST OVERVIEW.FMT returning an error
[S] 200 NNTP Service Ready
[C] LIST OVERVIEW.FMT
[S] 503 program error, function not performed
9.4.7 LISTGROUP
LISTGROUP [ggg]
The LISTGROUP command is used to get a listing of all the
article numbers in a particular news group.
The optional parameter ggg is the name of the news group to
be selected (e.g. "news.software.b"). A list of valid news
groups may be obtained from the LIST command. If no group is
specified, the current group is used as the default
argument.
The successful selection response will be a list of the
article numbers in the group followed by a period on a line
by itself. The list starts on the next line following the
211 response code.
When a valid group is selected by means of this command, the
internally maintained "current article pointer" MUST be set
to the first article in the group. If an invalid group is
specified, the previously selected group and article remain
Barber [Page 43]
INTERNET DRAFT November 1999
selected. If an empty news group is selected, the "current
article pointer" may be in an indeterminate state and should
not be used.
The group name MUST match a news group obtained from the
LIST command or an error will result, else the server will
respond with the 411 error code.
The LISTGROUP command is an optional extension. It MAY be
implemented. If it is not implemented, then the LISTGROUP
label MUST NOT be included in the response to the LIST
EXTENSIONS command.
9.4.7.1 Responses
211 list of article numbers follow
411 No such group
412 Not currently in news group
9.4.7.2 Examples
Example of a successful execution with a group that exists on
the server
[S] 200 NNTP Service Ready
[C] LISTGROUP misc.test
[S] 211 list of article numbers follow
3000234
3000237
3000238
3000239
3002322
.
Example of an unsuccessful execution with a group that does
not exist on the server
[S] 200 NNTP Service Ready
[C] LISTGROUP this.group.is.not.here
[S] 411 no such group
Example of an attempt to retrieve an article when the current
group selected is empty
Barber [Page 44]
INTERNET DRAFT November 1999
[S] 200 NNTP Service Ready
[C] LISTGROUP example.empty.newsgroup
[S] 412 No current article selected
9.4.8 OVER
OVER [range]
The OVER command returns information from the overview
database for the article(s) specified. The information
returned in the response to this command can be used by
clients to follow discussion threads.
The optional range argument may be any of the following:
. an article number
. an article number followed by a dash to indicate all following
. an article number followed by a dash followed by another
article number
If no argument is specified, then information from the current
article is displayed. Successful responses start with a 224
response followed by the overview information for all matched
messages. Once the output is complete, a period is sent on a
line by itself. If no argument is specified, the information
for the current article is returned. A news group must have
been selected earlier, else a 412 error response is returned.
If no articles are in the range specified, the server returns
a 420 error response. A 502 response will be returned if the
client only has permission to transfer articles.
Each line of output MUST be formatted with the article number,
followed by each of the headers in the overview database or
the article itself (when the data is not available in the
overview database) for that article separated by a US-ASCII
tab character. The sequence of fields must be in this order:
subject, author, date, message-id, references, byte count, and
line count. Other optional fields may follow line count. These
fields are specified by examining the response to the LIST
OVERVIEW.FMT command. Where no data exists, a null field must
be provided (i.e. the output will have two tab characters
adjacent to each other). Servers should not output fields for
articles that have been removed since the overview database
was created.
Note that all US-ASCII tab characters in any header data that
is returned will be converted to a single US-ASCII space
character. A contiguous sequence of US-ASCII non-printing
Barber [Page 45]
INTERNET DRAFT November 1999
characters will be compressed to a single US-ASCII space
character in any output response.
The OVER command is part of the OVER extension, which includes
the LIST OVERVIEW.FMT command. The OVER extension is optional.
If it is not implemented, the response to the LIST EXTENSIONS
command must not include the OVER label.
9.4.8.1 Responses
224 Overview information follows
412 No news group current selected
420 No article(s) selected
502 Service Unavailable
9.4.8.2 Examples
Example of a successful retrieval of overview information for
an article (using no article number)
[S] 200 NNTP Service Ready
[C] GROUP misc.test
[S] 211 1234 3000234 3002322 misc.test
[C] OVER
[S] 224 Overview information follows
300234|I am just a test article|nobody@nowhere.to
(Demo User)|6 Oct 1998 04:38:40 -0500|
<45223423@to.to>
.
[Please note that the line that begins with 200234 is all one
line that has been wrapped for readability. A vertical bar has
been inserted to show where the US-ASCII TAB should actually
be.]
Example of an unsuccessful retrieval of overview information
on an article by number
[S] 200 NNTP Service Ready
[C] GROUP misc.test
[S] 211 1234 3000234 3002322 misc.test
[C] OVER 300256
Barber [Page 46]
INTERNET DRAFT November 1999
[S] 420 No such article in this group
Example of an unsuccessful retrieval of overview information
by number because no news group was selected first
[S] 200 NNTP Service Ready
[C] OVER
[S] 412 No news group selected
Example of an attempt to retrieve an article when the current
group selected is empty
[S] 200 NNTP Service Ready
[C] GROUP example.empty.newsgroup
[S] 211 0 0 0 example.empty.newsgroup
[C] OVER
[S] 420 No current article selected
9.4.9 PAT
PAT header range|<message-id> [wildmat[ wildmat"]]
The PAT command is used to retrieve specific headers from
specific articles, based on pattern matching on the contents
of the header.
The required header parameter is the name of a header line
(e.g. "subject") in a news group article. See RFC-1036 for a
list of valid header lines. The required range argument may be
any of the following:
. an article number
. an article number followed by a dash to indicate all following
. an article number followed by a dash followed by another
article number.
The required message-id argument indicates a specific article.
The range and message-id arguments are mutually exclusive. An
additional argument consisting of one wildmat or two or more
wildmats separated by a space may be specified. If there are
no additional argument, a wildmat "*" is the default.
Successful responses start with a 221 response followed by
article number, an US-ASCII space, and the header from that
message in which the argument pattern matches the contents of
the specified header line. A valid response includes an empty
list (indicating that there were no matches). Once the output
is complete, a period is sent on a line by itself. If the
optional argument is a message-id and no such article exists,
Barber [Page 47]
INTERNET DRAFT November 1999
a 430 error response shall be returned. A 502 response shall
be returned if the client only has permission to transfer
articles.
The PAT command is optional. If it is not implemented, the
response to the LIST EXTENSIONS command must not include the
PAT label.
9.4.9.1 Responses
221 Header follows
412 no newsgroup selected
430 no such article
502 Service Unavailable
9.4.9.2 Examples
Example of a successful retrieval of subject lines from a
range of articles
[S] 200 NNTP Service Ready
[C] GROUP misc.test
[S] 211 1234 3000234 3002322 misc.test
[C] PAT Subject 3000234-300238
[S] 221 Header Follows
3000234 I am just a test article
3000237 Re: I am just a test article
3000238 Ditto
.
Example of a successful retrieval of subject lines from a
range of articles with header pattern matching
[S] 200 NNTP Service Ready
[C] GROUP misc.test
[S] 211 1234 3000234 3002322 misc.test
[C] PAT Subject 3000234-300238 j* ? *est
[S] 221 Header Follows
3000234 I am just a test article
3000237 Re: I am just a test article
Barber [Page 48]
INTERNET DRAFT November 1999
.
Example of a successful retrieval of header from an article by
message-id
[S] 200 NNTP Service Ready
[C] PAT subject <i.am.a.test.article@nowhere.to>
[S] 221 Header information follows
3000345 I am just a test article
.
Example of an unsuccessful retrieval of a header from an
article by message-id
[S] 200 NNTP Service Ready
[C] PAT subject <i.am.not.there@nowhere.to>
[S] 430 No Such Article Found
Example of an unsuccessful retrieval of headers from articles
by number because no news group was selected first
[S] 200 NNTP Service Ready
[C] PAT subject 300256-
[S] 412 No news group selected
Example of retrieving header information when the current
group selected is empty
[S] 200 NNTP Service Ready
[C] GROUP example.empty.newsgroup
[S] 211 0 0 0 example.empty.newsgroup
[C] PAT subject 0-
[S] 221 Headers follow
.
Example of a failure due to restrictions configured into the
server
[S] 200 NNTP Service Ready
[C] GROUP news.group
Barber [Page 49]
INTERNET DRAFT November 1999
[S] 211 1234 3000234 3002322 misc.test
[C] PAT Subject 3000234-300238
[S] 502 Service Unavailable
--
Andrew.
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Curt Welch
Date: Sun, 27 Feb 2000 00:00
Date: Sun, 27 Feb 2000 00:00
69 lines
3922 bytes
3922 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > [Curt Welch] > > > Newsreaders waste a lot of bandwidth doing XOVER commands which > > return data they don't want to see. > > Huh? Here's my overview.fmt, it's the INN default: > > Subject: > From: > Date: > Message-ID: > References: > Bytes: > Lines: > Xref:full > > Of these, the only header my newsreader doesn't use is Bytes. Well, even eliminating that one small field would be a savings. Not a very important one of course. Xref is one that many newsreaders I think might choose to drop. (as well as one of either Lines or Bytes). It's mostly needed only when you read an article. And when you have read the article, you have all the headers available so you don't need to pre-fetch that info. In addition, there's no need for the "full" option in this command so you get to drop the "Xref:" string from every response line even if you do want the Xref: header. Another small, but useful savings. More important is all the special applications that end up downloading more than they want, or having to run multiple xhdr commands which makes the client a bit more complex to write, and slower, and makes the server work a bit harder as it has to get the data for every article twice. These applications include the various light-weight newsreaders that may for example only want the subject and From headers (like a PDA client for example - wher complexity of the client code and bandwidth to the server are very important issues). And special purpose clients like binary downloaders that only care about the Subject and From to find parts. (*jpg* and *mpg* wildmats could be useful there for example). And lots of special purpose tools could take advantage of this -- like tools which we admins like to write to search for problems, or compare servers, etc. (HEADERS Message-ID,Control,Supersedes 1- *my.isp>*). It's also disassociates the admins choice of what to put in their overview DB from the clients need for headers. They can add two or three extra headers to the overview DB without "forcing" those headers on all their users. (of course we have to convert everyone off of XOVER before that will work - or hard code Xover to return only the XOVER "statandard" headers even though the DB holds 3 or 4 others as well.) This style command also opens the door for other useful pseudo headers like "crosspost-count", or "path-hops". For people that are used to accessing a server locally, all this talk of bandwidth savings may seem foolish. But for those of us who run Usenet services with users spread all over the world, this is very important. Total bandwidth used by the users is the #1 most important cost factor. And XOVER downloads is a very large percentage of the output of a news server. If you can cut that even 10%, it will be justified for us. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Curt Welch
Date: Sun, 27 Feb 2000 00:00
Date: Sun, 27 Feb 2000 00:00
55 lines
3144 bytes
3144 bytes
Jeremy <bofh@netscum.dk> wrote: > Curt Welch <curt@kcwc.com> wrote: > > >> PAT header range|<message-id> [wildmat[ wildmat"]] > > > > Has anybody though of extending this to include multiple headers? > > > > PAT header [header...] range|<message-id> [wildmat...] Actually re-thinking that syntax, it should be: > PAT header[,header...] range|<message-id> [wildmat...] > > The data would be returned in XOVER fashion. > > > > If you do that, then you could drop the OVER COMMAND from the RFC. > > You'll probably just think I'm a sick bastard, but I've thought more than > once that it would be cool for a client to be able to go SET OVERVIEW.FMT > and tell the server how it wants its overviews, until told differently. > So, if I'm not using the enormous Xref lines, I don't have to get them, > and similiarly, if I want X-Meow in my overviews, I could have it. > > Though I bet there are programmers who would curse me to the end of the > earth for that one. :) You don't want the session to store that state for you. It just makes it harder to write clients (for example when on NNTP session is shared by multiple parallel functions). Make the client send the overview.fmt at the begining of every xover command instead. And if you do that, you end up with exactly what I suggested above. > With your suggestion, though, how is the server to know which header to > apply the wildmat to? There's no problem there. It creates one long xover like line from the headers listed and applies the wildmat to the whole thing. I guess it would be nice to allow a way to put tabs in the wildmat, so you could really control what it matched with, but that's not even important. Remeber the wildmat is optional. In most cases when you were requesting multiple headers, you probably wouldn't even use the wildmat. Using the command with no wildmat gives you an xover like replacement which gives you full control over which headers you get. If you had to do per-header wildmats, you would just go back to doing them one header at a time. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Curt Welch
Date: Sun, 27 Feb 2000 00:00
Date: Sun, 27 Feb 2000 00:00
79 lines
4177 bytes
4177 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote:
> 9.4.9 PAT
>
> PAT header range|<message-id> [wildmat[ wildmat"]]
Has anybody though of extending this to include multiple headers?
PAT header [header...] range|<message-id> [wildmat...]
The data would be returned in XOVER fashion.
If you do that, then you could drop the OVER COMMAND from the RFC.
And this command would be better named "HEADERS". (why keep the silly PAT
name if the wildmats are optional and you are loosing all backward
compatibility by renaming it from XPAT to PAT anyway?)
Newsreaders waste a lot of bandwidth doing XOVER commands which return
data they don't want to see. And multiple XHDR/XPAT/PAT commands
are far less efficent for the server to execute than one command which
returns all the headers the client wants in one pass.
> The PAT command is used to retrieve specific headers from
> specific articles, based on pattern matching on the contents
> of the header.
>
> The required header parameter is the name of a header line
> (e.g. "subject") in a news group article. See RFC-1036 for a
> list of valid header lines. The required range argument may
> be any of the following:
The issue of non-standard headers should be addressed. As well as how
a server which only supports XOVER headers should respond to a request
for a different header.
And the "Bytes" and "Lines" pseudo headers should be discussed.
> . an article number
> . an article number followed by a dash to indicate all
> following . an article number followed by a dash followed by
> another article number.
> The required message-id argument indicates a specific
> article. The range and message-id arguments are mutually
> exclusive. An additional argument consisting of one wildmat
> or two or more wildmats separated by a space may be
> specified. If there are no additional argument, a wildmat "*"
> is the default.
What does two wildmat arguments mean? only headers matching both
wildmats will be shown. Headers matching either will be shown? A
wildmat is created by combining the two with a space and then only
those will be shown?
> Successful responses start with a 221
> response followed by article number,
This makes no sense for Message-ID look-ups. It's dangerous and
likely to cause confusion.
Current implementations of XPAT seem to return the Message-ID first, not an
article number. It should either be the Message-ID or a 0 value. I think
the Message-ID is probably the way to go.
It's questionable as to whether the Message-Id version of this command
is even needed since doing a HEAD command is almost as easy. But I guess
it might make things a little easier for some client authors.
> an US-ASCII space, and
> the header from that message
What happens with multiline headers? Are they returned "as is" in
multiline fashion? Is only the first line returned? Is the line
munged in XOVER fashion first?
--
Curt Welch http://CurtWelch.Com/
curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Curt Welch
Date: Mon, 28 Feb 2000 00:00
Date: Mon, 28 Feb 2000 00:00
84 lines
4819 bytes
4819 bytes
Jeremy <bofh@netscum.dk> wrote: > Curt Welch <curt@kcwc.com> wrote: > Not a bad point. On the other hand, if you require LIST OVERVIEW.FMT to > return the current format, then a client can request it whenever it's not > able to be sure, Or just send it every time if it's not sure. And that's not much worse that sending along with the request like I said. Even if the server is going to have a setable overview format, it should not be the "LIST OVERVIEW.FMT" that's being set becaue that has very specific meaning to performance. Most servers will return bulk OVERVIEW data very quickly. And they use it for XHDR commands as well. But when you ask for a header which isn't in the OVERVIEW.FMT list, it either won't return it, or it will return it, but it will be much slower becuse the server is forced to fetch each article one at a time to do so. And the OVERVIEW.FMT command helps the client know what may work and what may not work, and what will work quickly, etc. (at least in theory). So if you create a new command that allows you to pick the headers you want, and you go with the set format and get format type of server state, then it should not be the OVERVIEW.FMT that's getting changed. > rather than sending it every time -- resulting in less > network traffic. 'Course, it's barely a drop in the bucket compared to > the rest of the NNTP traffic we're tossing around these days... We are talking bulk header dumps here. The extra 60 bytes won't be noticed. The XOVER replacement command with all standard headers is only this long: HEADERS Subject From Date Message-ID References Bytes Lines Xref > >> With your suggestion, though, how is the server to know which header > >> to apply the wildmat to? > > > > There's no problem there. > I think it would be; applying the wildmat to the whole returned entry > would make it far less useful. The important extension in my mind is just the ability to do bulk header downlods of only the headers you want. That makes sense because it saves bandwith which is good for both the server and the client, and in the case of replacing multiple XHDRs with one HEADERS, it both reduces to load on the server (single instead of multiple articles fetchs for each article), speeds up the entire transaction, and reduces bandwidth. The wildmat stuff I just don't get. That is, I can't think of why I'd ever use it in a typical newsreader. I do like it with the good old TELNET newsreader, and there's a few speical purpose utilities I might use it in, but mostly, I just feel it's not too important (and perhaps even questionable as to whether it should be allowed on the server side instead for forcing the client to do that work). And in the TELNET case, I sure I can alwas make due with greping the entire line instead of just the header I want. But, in writing this, I came up with this syntax by accident which even I think is kinda neat: HEADERS 1- Message-ID From:*Jeremy* Subject:*NNTP* X-Meow Allow the wildmat to be added to any header using the colon! How simple and straight forward to both understand and parse. The only thing this doesn't address is the multiple wildmats per header issue (which I have no problem dropping support of), and the question of AND vs OR. i.e. should it display articles that match all wildmats, or articles that match any wildmat. I'm thinking it would be best to go with the "ALL" option. Oh, and there's also the NULL/zero length wildmat possibility with this syntax. Should that match all empty headers? (i.e. article doesn't have that header), or just be treated as * (i.e. same as no wildmat), or be considered an error? -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Jeremy
Date: Mon, 28 Feb 2000 00:00
Date: Mon, 28 Feb 2000 00:00
57 lines
3381 bytes
3381 bytes
Curt Welch <curt@kcwc.com> wrote: > You don't want the session to store that state for you. It just makes it > harder to write clients (for example when on NNTP session is shared by > multiple parallel functions). Make the client send the overview.fmt at the > begining of every xover command instead. And if you do that, you end up > with exactly what I suggested above. Not a bad point. On the other hand, if you require LIST OVERVIEW.FMT to return the current format, then a client can request it whenever it's not able to be sure, rather than sending it every time -- resulting in less network traffic. 'Course, it's barely a drop in the bucket compared to the rest of the NNTP traffic we're tossing around these days... >> With your suggestion, though, how is the server to know which header >> to apply the wildmat to? > > There's no problem there. > > It creates one long xover like line from the headers listed and applies > the wildmat to the whole thing. I guess it would be nice to allow > a way to put tabs in the wildmat, so you could really control what > it matched with, but that's not even important. I think it would be; applying the wildmat to the whole returned entry would make it far less useful. > Remeber the wildmat is optional. In most cases when you were requesting > multiple headers, you probably wouldn't even use the wildmat. Using the > command with no wildmat gives you an xover like replacement which gives you > full control over which headers you get. > > If you had to do per-header wildmats, you would just go back to doing > them one header at a time. I think you're really describing more than one command here. PAT is fine as it is; on top of that, there is a need for a multi-header pattern-matching overview-like-returning command as you describe. It should allow access to any arbitrary header (that's the part the programmers won't like) and should allow the pattern to be applied to any specific header on the requested list. But, the more I think about SET OVERVIEW.FMT, the more I want it. You could even obtain the result you're talking about by having the overview.fmt apply to your "new and improved" overview-like PAT-like command; then you don't have to tell it what headers you want, but only what headers you want to apply the wildmat to, and have it return matches in overview format according to the currently specified format. So, OVERPAT Subject 1- *.jpg* would return overview records, according to the currently selected overview format, in which the Subject line matches the pattern. -- Jeremy ( jeremy@exit109.com | bofh@netscum.dk )
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Jonathan Grobe
Date: Mon, 28 Feb 2000 00:00
Date: Mon, 28 Feb 2000 00:00
17 lines
1564 bytes
1564 bytes
In article <20000228153833.742$B7@newsreader.com>, Curt Welch wrote: >If we get the HEADERS command figured out in time, and people want it, >then we could add it to the RFC, but if there's any issues or doubts, we >shouldn't let it hold up the current RFC. > I thought there was a restriction that this RFC could only include commands already in use in at least two existing implementations, that new ones could only be added as extensions? -- Jonathan Grobe Jonathan Grobe Books. Used & out-of-print books: Search or browse subject catalogs: <http://www.netins.net/showcase/grobe> For millions of used/out-of-print books try <http://www.abebooks.com> <http://www.bibliofind.com> <http://www.bookavenue.com>
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Jeremy
Date: Mon, 28 Feb 2000 00:00
Date: Mon, 28 Feb 2000 00:00
74 lines
3656 bytes
3656 bytes
Curt Welch <curt@kcwc.com> wrote: > Even if the server is going to have a setable overview format, it should > not be the "LIST OVERVIEW.FMT" that's being set becaue that has very > specific meaning to performance. Most servers will return bulk OVERVIEW > data very quickly. And they use it for XHDR commands as well. But when > you ask for a header which isn't in the OVERVIEW.FMT list, it either > won't return it, or it will return it, but it will be much slower becuse > the server is forced to fetch each article one at a time to do so. Well, my idea is that the server would be required to return it, no matter what headers are wanted. None of this "header X-Meow not in index" bunk. That is another good point though, as was Andrew's. If the implementation still has the same kind of overview indexing, it would be good to make the "standard" OVER/XOVER command still be "nice" to the server by using those records. > The XOVER replacement command with all standard headers is only this long: > > HEADERS Subject From Date Message-ID References Bytes Lines Xref Yep. I like it, and it would do what I want. >> I think it would be; applying the wildmat to the whole returned entry >> would make it far less useful. > > The important extension in my mind is just the ability to do bulk header > downlods of only the headers you want. Yes, that's why I don't think it belongs in PAT; it doesn't sound like the pattern matching is really what you're after. > The wildmat stuff I just don't get. That is, I can't think of why I'd ever > use it in a typical newsreader. It's certainly specialized. > But, in writing this, I came up with this syntax by accident > which even I think is kinda neat: > > HEADERS 1- Message-ID From:*Jeremy* Subject:*NNTP* X-Meow > > Allow the wildmat to be added to any header using the colon! How simple > and straight forward to both understand and parse. I like it. > The only thing this doesn't address is the multiple wildmats per header > issue (which I have no problem dropping support of), Fine by me. > and the question of AND vs OR. i.e. should it display articles that > match all wildmats, or articles that match any wildmat. I'm thinking > it would be best to go with the "ALL" option. Yes, AND is the way to go. OR can be accomplished by performing multiple searches. > Oh, and there's also the NULL/zero length wildmat possibility with this > syntax. Should that match all empty headers? (i.e. article doesn't have > that header), or just be treated as * (i.e. same as no wildmat), or be > considered an error? You mean, "X-Meow:" versus "X-Meow"? Treat "X-Meow:" as "X-Meow:*", and require the header to be present. Just "X-Meow" would cause the content of the header to be returned if it exists, or an empty string in that field if it doesn't. -- Jeremy ( jeremy@exit109.com | bofh@netscum.dk )
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Curt Welch
Date: Mon, 28 Feb 2000 00:00
Date: Mon, 28 Feb 2000 00:00
140 lines
6927 bytes
6927 bytes
Jeremy <bofh@netscum.dk> wrote:
> Curt Welch <curt@kcwc.com> wrote:
> Yes, that's why I don't think it belongs in PAT; it doesn't sound like
> the pattern matching is really what you're after.
In that light...
My latest thought on this new multi-header command is that it's probably
the right way to go in general as a replacement for all the XOVER/OVER/
XHDR/XPAT/PAT commands, but that instead of trying to get this resolved
now, it would make the most sense to just go with OVER and PAT like
they are (after resolving those outstanding issues of course), and make
this new command an EXTENSION that will be done later (or done now, but
independent of the basic NNTP RFC).
XHDR has been a defacto standard in use for over 10 years now and
it's damn sure time to get its functionality supported in the RFC. Even if
we can't put XHDR in the standard as-is because of the X name problem, PAT
at least is a drop-in replacement for it and for XPAT. That means that any
client that currently uses XHDR and or XPAT, can switch to the new standard
just by changing the command name from XHDR to PAT, or from XPAT to PAT.
All the return codes and semantics are identical so nothing else needs to
be changed. Same thing for XOVER to OVER.
You could even do a patch on the binary of an old, no longer supported,
newsreader and convert it from the old X cmds to the new RFC. (Overwrite
"XOVER" with "OVER " and "XPAT" with "PAT ", and "XHDR" with "PAT ".)
With this new HEADERS command, the newsreader author will have to get in
there and make some real changes to be able to use it. So I don't think
it makes sense to think of removing OVER and PAT and replacing it with
this new command like I had suggested before.
If we get the HEADERS command figured out in time, and people want it,
then we could add it to the RFC, but if there's any issues or doubts, we
shouldn't let it hold up the current RFC.
> > But, in writing this, I came up with this syntax by accident
> > which even I think is kinda neat:
> >
> > HEADERS 1- Message-ID From:*Jeremy* Subject:*NNTP* X-Meow
> >
> > Allow the wildmat to be added to any header using the colon! How
> > simple and straight forward to both understand and parse.
>
> I like it.
>
> > The only thing this doesn't address is the multiple wildmats per header
> > issue (which I have no problem dropping support of),
>
> Fine by me.
>
> > and the question of AND vs OR. i.e. should it display articles that
> > match all wildmats, or articles that match any wildmat. I'm thinking
> > it would be best to go with the "ALL" option.
>
> Yes, AND is the way to go. OR can be accomplished by performing multiple
> searches.
>
> > Oh, and there's also the NULL/zero length wildmat possibility with this
> > syntax. Should that match all empty headers? (i.e. article doesn't have
> > that header), or just be treated as * (i.e. same as no wildmat), or be
> > considered an error?
>
> You mean, "X-Meow:" versus "X-Meow"?
Yes, exactly.
> Treat "X-Meow:" as "X-Meow:*", and
> require the header to be present.
A way to test for the presence of the header. Interesting. So you would
have a way to say "only list articles which actually have an X-Meow
header."
But a wildmat of * will match the null string, so that's not the same thing
(but could be special cased to mean that anyway).
Well, if you have any "normal" wildmat that has at least one character, ?,
or character range[], then you will end up getting a result which will only
include articles that have X-Meow: headers.
So, yes, I think that type of semantic makes sense. Without the colon, the
output will include articles even if they do not have the header. The
field will just be empty. With the colon, you will only get articles
listed which have the header. And Header:* will be the same as Header:,
which will really "act" like Header:?*.
And, if it is techincally possible to inject an article into Usenet with
a empty header, then it's ok for a server to treat that semantically the
same as if the header wasn't there at all.
You need to say this because if the HEADERS command code is producing it's
output by looking at a traditionally formated XOVER database (which it will
be doing for most servers), there's no way for it to tell the difference
between an article with an empty header, or no header at all. All it can
do is check for the difference between a zero length field and a non-zero
length field.
So this becomes a simple way to say, "show me all articles in the group
which have an X-Meow header":
HEADERS 1- X-Meow:
Hey, and this:
HEADERS 1-
is the same as LISTGROUP. Interesting. It gets to replace something
else at the same time.
Hmm, only one thing missing....
HEADERS news.software.nntp:1-
There, now it's complete :). Allow an optional <newsgroupname>: to
prefix the range. If it's specified, it will not affect the "current
group", and the command will never affect the "current article" pointer
in any case. Or maybe not. Some servers maintain a lot of state
with the "current group", and in order to process this command for
a different group without lossing the context, it would have to perforam
the overhead to swtich to the new group, do the HEADERS command, and
then waste resources switching back to the old group. Ok, maybe
it you specify the GROUP, it does set the "current group". Current
article pointer should not change however. And current group will
also not change when the <message-id> form of access is used.
Ah, but if that's the case, why not just force them to do the GROUP
command first.
Ok, maybe the newsgroupname: idea is going too far.
Anybody else have any thoughts about the merits of this command?
--
Curt Welch http://CurtWelch.Com/
curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Curt Welch
Date: Mon, 28 Feb 2000 00:00
Date: Mon, 28 Feb 2000 00:00
32 lines
2506 bytes
2506 bytes
grobe+news@netins.net (Jonathan Grobe) wrote: > In article <20000228153833.742$B7@newsreader.com>, Curt Welch wrote: > > >If we get the HEADERS command figured out in time, and people want it, > >then we could add it to the RFC, but if there's any issues or doubts, we > >shouldn't let it hold up the current RFC. > > > I thought there was a restriction that this RFC could only include > commands already in use in at least two existing implementations, > that new ones could only be added as extensions? If so, that's fine. That just goes along with what I am saying. Don't hold up the RFC just becasue this "looks" like a good idea. And I think that sounds like a very good rule even if it's not formally defined somewhere. Sometimes, what sounds like a good idea in the design stage turns out to be very bad idea when you try to build it. However, I know that in my server, which already has the technology for the support of all the OVER/PAT commands, and for any headers, the amount of extra work required to add this new HEADERS command is realativly small and straight forward. Probably a day of work at most. So, even with the "two existing implementations rule", it might be quite possible to get that done before the RFC goes to press. How many years has the RFC been in the works already? -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Andrew Gierth
Date: Mon, 28 Feb 2000 00:00
Date: Mon, 28 Feb 2000 00:00
15 lines
1500 bytes
1500 bytes
>>>>> "Jeremy" == Jeremy <bofh@netscum.dk> writes: Jeremy> But, the more I think about SET OVERVIEW.FMT, the more I want Jeremy> it. Keeping state in the server is worth avoiding if possible. The client has to deal with resuming after a dropped connection: it already has to re-issue the GROUP command, and re-authenticate if necessary, adding any more state just gives the client more stuff that it has to keep track of and redo on every connect. -- Andrew.
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Jeremy
Date: Mon, 28 Feb 2000 00:00
Date: Mon, 28 Feb 2000 00:00
40 lines
2500 bytes
2500 bytes
Curt Welch <curt@kcwc.com> wrote: > My latest thought on this new multi-header command is that it's probably > the right way to go in general as a replacement for all the XOVER/OVER/ > XHDR/XPAT/PAT commands, but that instead of trying to get this resolved > now, it would make the most sense to just go with OVER and PAT like > they are (after resolving those outstanding issues of course), and make > this new command an EXTENSION that will be done later (or done now, but > independent of the basic NNTP RFC). I really don't want to touch OVER and PAT; they're too entrenched, and there just isn't any reason to do away with them or change them. I'd rather have HEADERS in the RFC than as an extension, though. >> Treat "X-Meow:" as "X-Meow:*", and require the header to be present. > > A way to test for the presence of the header. Interesting. So you would > have a way to say "only list articles which actually have an X-Meow > header." > > But a wildmat of * will match the null string, so that's not the same thing > (but could be special cased to mean that anyway). You can't have null headers, so it really does mean the same thing. And if you can have null headers, then the header really is present in the article, and thus should match, so it still means the same thing. > You need to say this because if the HEADERS command code is producing it's > output by looking at a traditionally formated XOVER database (which it will > be doing for most servers), Well, if it needs to have access to any arbitrary header, then that won't always be the case. A server would actually be better off indexing *all* the headers in an article, but it could also check the articles themselves. -- Jeremy ( jeremy@exit109.com | bofh@netscum.dk )
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Russ Allbery
Date: Mon, 28 Feb 2000 00:00
Date: Mon, 28 Feb 2000 00:00
19 lines
1650 bytes
1650 bytes
Jonathan Grobe <grobe+news@netins.net> writes: > Curt Welch wrote: >> If we get the HEADERS command figured out in time, and people want it, >> then we could add it to the RFC, but if there's any issues or doubts, >> we shouldn't let it hold up the current RFC. > I thought there was a restriction that this RFC could only include > commands already in use in at least two existing implementations, that > new ones could only be added as extensions? I seem to recall that there are other drafts besides the one that Andrew posted that are in progress from the same working group, too. Those have the other various extensions. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Jeremy
Date: Mon, 28 Feb 2000 00:00
Date: Mon, 28 Feb 2000 00:00
15 lines
1122 bytes
1122 bytes
Jonathan Grobe <> wrote: > I thought there was a restriction that this RFC could only include > commands already in use in at least two existing implementations, > that new ones could only be added as extensions? Hmm. Well, Curt can write the server code, and I'll write some client code and test it against his server, and that'll make two. :) -- Jeremy ( jeremy@exit109.com | bofh@netscum.dk )
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Kjetil Torgrim Homme
Date: Tue, 29 Feb 2000 00:00
Date: Tue, 29 Feb 2000 00:00
25 lines
1922 bytes
1922 bytes
[Curt Welch] > But, in writing this, I came up with this syntax by accident > which even I think is kinda neat: > > HEADERS 1- Message-ID From:*Jeremy* Subject:*NNTP* X-Meow > > Allow the wildmat to be added to any header using the colon! How simple > and straight forward to both understand and parse. The only thing this > doesn't address is the multiple wildmats per header issue (which I have no > problem dropping support of), and the question of AND vs OR. i.e. should > it display articles that match all wildmats, or articles that match any > wildmat. I'm thinking it would be best to go with the "ALL" option. Definitely "ALL". The "ANY" can be implemented with essentially the same bandwidth requirements, you can't say the same for emulating ALL from ANY output. You didn't consider whitespace in the wildmat, though. Probably define a special symbol in the wildmat syntax? Kjetil T.
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Andrew Gierth
Date: Tue, 29 Feb 2000 00:00
Date: Tue, 29 Feb 2000 00:00
18 lines
1579 bytes
1579 bytes
>>>>> "Curt" == Curt Welch <curt@kcwc.com> writes: >> A server would actually be better off indexing *all* the headers >> in an article, Curt> I think this HEADERS command will encourage future designs to Curt> do just that. How do you suggest multiple instances of a header be handled? (As a server implementor, I personally don't feel that the overhead of indexing 24kbytes per post of meower vanity headers is really worth it just to support HEADERS X-Fuckkkhead * or whatever.) -- Andrew.
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Curt Welch
Date: Tue, 29 Feb 2000 00:00
Date: Tue, 29 Feb 2000 00:00
60 lines
3419 bytes
3419 bytes
Jeremy <bofh@netscum.dk> wrote: > Curt Welch <curt@kcwc.com> wrote: > > You need to say this because if the HEADERS command code is producing > > it's output by looking at a traditionally formated XOVER database > > (which it will be doing for most servers), > > Well, if it needs to have access to any arbitrary header, then that won't > always be the case. That's true. It could make the test based on the "true" absence or presence of the header when possible. But as I think about this, I'm not sure if that's the best way to do this. Shouldn't an empty header always be treated (from the news client perspective) exactly the same as if the header weren't there? So if the client say did a: HEADERS 1- Reference: looking for all followup articles, and there was one bogus article in the group with an empty Reference: header, the client probably wouldn't want it included in his list. Because empty headers "never" happen, most clients would never expect to see it if they used the : option. So I'm thinking that when in that 1 out of a million chance they do show up, it's more likely to cause problems (maybe even core dumps or lock-ups) in the client. So as a service to the client, I'm thinking the "NON-EMPYT" meaing of : is proably the best. The only reason I can see for actually supporting the "Header Preset" version of : would be for those of us looking for bogus articles. But in that case, I don't want to see a million Reference headers just to find that one empty one so this command is not what I would use to search for that anyway. Also, if you failed to ignore empty headers, then we are giving "meaning" to the concept on an empty header. And that could help encourage the mis-use of empty headers by users, "Dejanews might have invented the "X-No-Archive: header (without the Yes argument)" for example. So, what does USEFOR say about empty headers again? Does it say they are never allowed? If so, then I think it supports the type of logic I'm using here. There aren't any empty headers currently in use for something on Usenet are there? -- even unofficial things? > A server would actually be better off indexing *all* > the headers in an article, I think this HEADERS command will encourage future designs to do just that. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: J. Moreno
Date: Tue, 29 Feb 2000 00:00
Date: Tue, 29 Feb 2000 00:00
16 lines
1561 bytes
1561 bytes
In article <20000228212608.617$kG@newsreader.com>, Curt Welch <curt@kcwc.com> wrote: > So, what does USEFOR say about empty headers again? Does it say they are > never allowed? If so, then I think it supports the type of logic I'm > using here. Never allowed (but I don't remember off hand whether it's OK for a server to simply delete the empty header [which is what is done now, as far as I know], or whether they are supposed to reject them). -- J. B. Moreno Pessimist: Half empty Optimist: Half full Engineer: Wrong size glass
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Curt Welch
Date: Tue, 29 Feb 2000 00:00
Date: Tue, 29 Feb 2000 00:00
72 lines
4331 bytes
4331 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: > >>>>> "Curt" == Curt Welch <curt@kcwc.com> writes: > > >> A server would actually be better off indexing *all* the headers > >> in an article, > > Curt> I think this HEADERS command will encourage future designs to > Curt> do just that. > > How do you suggest multiple instances of a header be handled? Never thought about it. Good question. What does/should PAT do about that? In my server, you only get the first header for those commands. But with the PAT format, you could of course print out multiple responses for the same header. But I doubt any implementation of PAT does that. My HEADERS command would be forced to drop the extra headers, or combine them all together as if they were one long header. Are there any headers in common use that are allowed to be duplicated. X-Comments: is something I think I've seen duplicated (or ones like that). That would be one that would be OK to combine together I think. Looking at some headers, I spot X-FTN-SEEN-BY: duplicated. That looks like one that could be combined into one line without a problem. And X-FTN-PATH:. Not sure about that. I see a lot of stuff like X-Moderation-1: and X-Moderation-2: i.e. people numbering headers to prevent duplication. Ah, there's an X-Abuse-Info: that's duplicated in <38a68045$0$2994@reader3.casema.net>. The Mail headers like To: and Cc: which can be duplicated in mail (right?) are something people might want to extract with the HEADERS command, and if you simply combined them together without adding the comma, then it wouldn't work. You could special case those and add the comma only for those when they are combined togther. But for the mail Received: header there's nothing you can do. Combining them together would never work well. I'm thinking that maybe the correct approach is to ONLY return the first header in the cases where it's duplicated. This would reinforce the convention that "real" Usenet headers can not be duplicated. The HEADERS command could still be used to help locate articles which had a To: header, but if you want to be sure to get all the data for these non-standard Usenet headers, you would just have to use the HEAD command. HEADERS isn't meant to be the end-all solution for all your header needs. It's just meant to be a "beter" form of XOVER that 1) allows applications to leave out what they don't need, and 2) add in extras they may want like MIME headers or Organization etc. > (As a server implementor, I personally don't feel that the overhead of > indexing 24kbytes per post of meower vanity headers is really worth it > just to support HEADERS X-Fuckkkhead * or whatever.) I don't index anything as it comes in. I do it all on demand and then cache it. So I won't be wasting any time or storage indexing X-Fuckkkhead headers unless a user starts asking for it -- and then the work is only associated with the group in which they ask that. And, actually, my current design is only able to cache the standard XOVER data, so X-Fuckkkhead requests are always going to be slow. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Curt Welch
Date: Tue, 29 Feb 2000 00:00
Date: Tue, 29 Feb 2000 00:00
37 lines
2678 bytes
2678 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > [Curt Welch] > You didn't consider whitespace in the wildmat, though. Probably > define a special symbol in the wildmat syntax? I thought about it. I decided in my own mind that it just wasn't that important. You can always just use a ? where you would have wanted a space and for most things that would work fine (or ?* for 1 or more white space characters). If you get any false positives at all you can filter them out in the client. I thought about adding a meta-character for whitespace to wildmat but if you try to do that everywhere wildmat is used in NNTP you run the risk of causing problems with some existing clients. If you do it only for the wildmat in the HEADERS command, you cause complexity and confusion. There is room in the current wildmat syntax to sneak stuff like that in though. \s currently maps to s, which most likely no would ever use, so you could make \s be SP (or \b or \w, whatever), and most likely not cause any real problems. Wildmat however isn't meant to be an end-all regular expression replacement. So the fact that it isn't perfect isn't a show stopper. It's main goal here (as I see it) is just to help cut out the bulk of what you don't want so you only have to download 100 headers instead of 10000. The real detail work should be done on the client side anyway. So my conclusion is that a single wildmat pattern (per header) with no ability to enter a space would be fine. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Andrew Gierth
Date: Tue, 29 Feb 2000 00:00
Date: Tue, 29 Feb 2000 00:00
14 lines
1428 bytes
1428 bytes
>>>>> "Curt" == Curt Welch <curt@kcwc.com> writes: Curt> Are there any headers in common use that are allowed to be Curt> duplicated. X-Auth (as used by PGPMoose). Restricting the use of duplicate (extension or private) headers is in general not a good thing. -- Andrew.
Re: Technical Issue on Header Indexing (was: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT))
Author: Earl Camembert
Date: Wed, 01 Mar 2000 00:00
Date: Wed, 01 Mar 2000 00:00
24 lines
1877 bytes
1877 bytes
Concerned Meower wrote: > > In article <87r9dw1yqz.fsf@erlenstar.demon.co.uk>, Andrew Gierth mewled: > > > >>>>>> "Curt" == Curt Welch <curt@kcwc.com> writes: > > > > >> A server would actually be better off indexing *all* the headers > > >> in an article, > > > > Curt> I think this HEADERS command will encourage future designs to > > Curt> do just that. > > > >How do you suggest multiple instances of a header be handled? > > > >(As a server implementor, I personally don't feel that the overhead of > >indexing 24kbytes per post of meower vanity headers is really worth it > >just to support HEADERS X-Fuckkkhead * or whatever.) > > That would be X-FucKKKhead when Stan KKKalisch is mentioned. > Any others come to mind? Andrew seems to be working on it.
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Jeremy
Date: Wed, 01 Mar 2000 00:00
Date: Wed, 01 Mar 2000 00:00
23 lines
1558 bytes
1558 bytes
Curt Welch <curt@kcwc.com> wrote: > Also, if you failed to ignore empty headers, then we are giving "meaning" > to the concept on an empty header. And that could help encourage the > mis-use of empty headers by users, "Dejanews might have invented the > "X-No-Archive: header (without the Yes argument)" for example. I really don't think this is much of an issue. How often do you see empty headers? How many implementations (client or server) allow them? Do any? I can't post with them from my newsreader. (Actually it just drops any empty headers that I might include.) >> A server would actually be better off indexing *all* the headers in an >> article, > > I think this HEADERS command will encourage future designs to do just that. Which I think is a good thing. -- Jeremy ( jeremy@exit109.com | bofh@netscum.dk )
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Jeremy
Date: Wed, 01 Mar 2000 00:00
Date: Wed, 01 Mar 2000 00:00
28 lines
1924 bytes
1924 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: > How do you suggest multiple instances of a header be handled? Well. You could either return just the first one, or you could combine them into one response. I think returning just the first one would be fine; I can't imagine any header that can be duplicated being so important in an overview context that anything would break in that case. Once you do a HEAD or an ARTICLE, you've got all the headers. > (As a server implementor, I personally don't feel that the overhead of > indexing 24kbytes per post of meower vanity headers is really worth it > just to support HEADERS X-Fuckkkhead * or whatever.) Well, that's a valid point. But I do think it would be worth it, for the added functionality we'd get. I mean, we add hundreds of gigs of drive space for alt.binaries.* as it is. The extra resources the indexing would consume will, I think, be well worth it, especially in comparison to keeping up with the now consistently more than 100 gigs per day of nonsense we're throwing around. It'll also help clients to only download what they want, saving bandwidth and time. -- Jeremy ( jeremy@exit109.com | bofh@netscum.dk )
Re: Technical Issue on Header Indexing (was: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT))
Author: STEVEN GUY POLIS DOWNLOADS KIDDI...
Date: Wed, 01 Mar 2000 00:00
Date: Wed, 01 Mar 2000 00:00
29 lines
2375 bytes
2375 bytes
On Wed, 1 Mar 2000 22:52:56 +0100, ! SEE ME NAKED 23758 bytes <pedophile@FLUFFY.GETS.An.analprObe.DK> wrote: >On Wed 2374 September 1993, Concerned Meower wrote: > >> In article <87r9dw1yqz.fsf@erlenstar.demon.co.uk>, Andrew Gierth mewled: >> >(As a server implementor, I personally don't feel that the overhead of >> >indexing 24kbytes per post of meower vanity headers is really worth it >> >just to support HEADERS X-Fuckkkhead * or whatever.) >> >> That would be X-FucKKKhead when Stan KKKalisch is mentioned. >> Any others come to mind? > >DON'T FORGET TO ADD X-PEDOPHILE: BARRY BOUWSMA TO ALL YOUR POSTS! >OR THEY WILL BE CANCELLED!@ NO! WAIT!!! THAT SHOULD NOT BE >X-PEDOPHILE, THAT SHOULD BE THE PEDOPHILE HEADER!!! BARRY BOUWSMA >IS NOT AN EX-PEDOPHILE! WE NEED TO GET THIS HEADER STANDARDIZED!!!!!!!!!!!!!!!!!!! Which is the proper header? X-Pedophile: Barry Bouwsma Current-Pedophile: Barry Bouwsma Ex-Pedophile-Current-Prisoner: Barry Bouwsma Your guidance and advice is requested.
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Chunk Light Fluffy
Date: Wed, 01 Mar 2000 00:00
Date: Wed, 01 Mar 2000 00:00
27 lines
1947 bytes
1947 bytes
Jeremy wrote: > Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: > > > How do you suggest multiple instances of a header be handled? > > Well. You could either return just the first one, or you could combine > them into one response. Combining works, one per line (with the "natural" leading whitespace in continued headers pointing out where multiples begin). > I think returning just the first one would be > fine; I can't imagine any header that can be duplicated being so important > in an overview context that anything would break in that case. Here is one. Thre are swerers out there which add an "X-NNTP-Posting-Host:" header in suck feed arrangements, but also leave in any user-supplied copies of that header. Seeing all instances of that header can be needed to effectively killfile asmeone coming from such a box. > Once you do a HEAD or an ARTICLE, you've got all the headers. Yeah, but that's way slow. It's probably not quite as evil as MODE READER, but it's damn close.
Re: Technical Issue on Pedophile Header Indexing (was: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT))
Author: Undercover Vulis
Date: Wed, 01 Mar 2000 00:00
Date: Wed, 01 Mar 2000 00:00
22 lines
2305 bytes
2305 bytes
! SEE ME NAKED 23758 bytes <pedophile@FLUFFY.GETS.An.analprObe.DK> spews: >On Wed 2374 September 1993, Concerned Meower wrote: > >> In article <87r9dw1yqz.fsf@erlenstar.demon.co.uk>, Andrew Gierth mewled: >> >(As a server implementor, I personally don't feel that the overhead of >> >indexing 24kbytes per post of meower vanity headers is really worth it >> >just to support HEADERS X-Fuckkkhead * or whatever.) >> >> That would be X-FucKKKhead when Stan KKKalisch is mentioned. >> Any others come to mind? > >DON'T FORGET TO ADD X-PEDOPHILE: BARRY BOUWSMA TO ALL YOUR POSTS! >OR THEY WILL BE CANCELLED!@ NO! WAIT!!! THAT SHOULD NOT BE >X-PEDOPHILE, THAT SHOULD BE THE PEDOPHILE HEADER!!! BARRY BOUWSMA >IS NOT AN EX-PEDOPHILE! WE NEED TO GET THIS HEADER STANDARDIZED!!!!!!!!!!!!!!!!!!! Yes, it should be a standard in all news software.
Re: Technical Issue on Header Indexing (was: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT))
Author: STEVEN GUY POLIS DOWNLOADS KIDDI...
Date: Wed, 01 Mar 2000 00:00
Date: Wed, 01 Mar 2000 00:00
35 lines
2374 bytes
2374 bytes
On 1 Mar 2000 12:15:47 -0600, Earl Camembert <camembert@falbo.sctv.org> wrote: >Concerned Meower wrote: >> >> In article <87r9dw1yqz.fsf@erlenstar.demon.co.uk>, Andrew Gierth mewled: >> > >> >>>>>> "Curt" == Curt Welch <curt@kcwc.com> writes: >> > >> > >> A server would actually be better off indexing *all* the headers >> > >> in an article, >> > >> > Curt> I think this HEADERS command will encourage future designs to >> > Curt> do just that. >> > >> >How do you suggest multiple instances of a header be handled? >> > >> >(As a server implementor, I personally don't feel that the overhead of >> >indexing 24kbytes per post of meower vanity headers is really worth it >> >just to support HEADERS X-Fuckkkhead * or whatever.) >> >> That would be X-FucKKKhead when Stan KKKalisch is mentioned. >> Any others come to mind? > >Andrew seems to be working on it. He does seem the type to think of "k" as a letter which is best presented with 2 other uniquely identical letters, e.g. KKK. It must give him something to do in between his NAMBLA officer board meetings.
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Curt Welch
Date: Wed, 01 Mar 2000 00:00
Date: Wed, 01 Mar 2000 00:00
60 lines
3449 bytes
3449 bytes
Jeremy <bofh@netscum.dk> wrote: > Curt Welch <curt@kcwc.com> wrote: > > > Also, if you failed to ignore empty headers, then we are giving > > "meaning" to the concept on an empty header. And that could help > > encourage the mis-use of empty headers by users, "Dejanews might have > > invented the "X-No-Archive: header (without the Yes argument)" for > > example. > > I really don't think this is much of an issue. How often do you see > empty headers? How many implementations (client or server) allow them? > Do any? I can't post with them from my newsreader. (Actually it just > drops any empty headers that I might include.) Well from what I've just read today, it seems inn has been dropping empty headers from in-tranist articles for a long time. No wonder we don't see them. But, on the HEADERS command, I've had some more thoughts about the empth wildmat issue. That is, the X-Meow vs the X-Meow: thing. You had suggested that X-Meow: be the same as X-Meow:*, which you saw as only matching articles which actually had a X-Meow: header - which certainly sounds useful. But logically, X-Meow: means you have a null wildmat. And a null wildmat string "matches" only an empty header, which, in the code, is what naturally happens when that header is NOT in the article -- which is just the opposit of what you were thinking about. But that too is useful. Because it allows you to do just the opposit type of search easily and naturally. For example, if you want to see header data for all articles without a references: header, you can just use do: HEADERS 1- From Subject References: Of course, the wierd thing about doing that is that you end up with a field in the output which is always empty. If you want to see data from only articles with a X-Meow header, you just need to check for at least one character of data in the header: HEADERS 1- X-Meow:?* Or, I also realized, you can check for a Non Null header like this: HEADERS 1- X-Meow:! But I have to admit, that "looks" like you are saying No X-Meow: header, instead of NO Empty X-Meow: headers which is what it actually means. Maybe you way of thinking -- that a wildmat match must fail if there's NO header is more logical from the end-user perspective. I'll have to think about what this means some more..... -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Technical Issue on Header Indexing (was: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT))
Author: Undercover Vulis
Date: Wed, 01 Mar 2000 00:00
Date: Wed, 01 Mar 2000 00:00
15 lines
1730 bytes
1730 bytes
! SEE ME NAKED 23758 bytes <pedophile@FLUFFY.GETS.An.analprObe.DK> spews: See Barry and some pre-teen boys naked here: http://www.inet.tele.dk/linkbot/index_images.htm >THAT SHOULD NOT BE >X-PEDOPHILE, THAT SHOULD BE THE PEDOPHILE HEADER!!! BARRY BOUWSMA >IS NOT AN EX-PEDOPHILE!
Re: Technical Issue on Header Indexing (was: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT))
Author: I R A Darth Aggie
Date: Wed, 01 Mar 2000 00:00
Date: Wed, 01 Mar 2000 00:00
34 lines
2397 bytes
2397 bytes
On 1 Mar 2000 05:50:15 -0800, Concerned Meower <meowing@bungmunch.edu>, in <89j76n$31i7@edrn.newsguy.com> wrote: + In article <87r9dw1yqz.fsf@erlenstar.demon.co.uk>, Andrew Gierth mewled: + > + >>>>>> "Curt" == Curt Welch <curt@kcwc.com> writes: + > + > >> A server would actually be better off indexing *all* the headers + > >> in an article, + > + > Curt> I think this HEADERS command will encourage future designs to + > Curt> do just that. + > + >How do you suggest multiple instances of a header be handled? + > + >(As a server implementor, I personally don't feel that the overhead of + >indexing 24kbytes per post of meower vanity headers is really worth it + >just to support HEADERS X-Fuckkkhead * or whatever.) + + That would be X-FucKKKhead when Stan KKKalisch is mentioned. + Any others come to mind? Isn't there an X-Meow? Meow. James - you forgot to say Meow. You owe Fluffy $1. -- Consulting Minister for Consultants, DNRC The Bill of Rights is paid in Responsibilities - Jean McGuire To cure your perl CGI problems, please look at: <url:http://www.perl.com/CPAN/doc/FAQs/cgi/idiots-guide.html>
Re: Technical Issue on Header Indexing (was: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT))
Author: STEVEN GUY POLIS DOWNLOADS KIDDI...
Date: Wed, 01 Mar 2000 00:00
Date: Wed, 01 Mar 2000 00:00
38 lines
2357 bytes
2357 bytes
On 1 Mar 2000 17:07:42 GMT, sy_nttvr@gurcragntba.pbz (I R A Darth Aggie) wrote: >On 1 Mar 2000 05:50:15 -0800, >Concerned Meower <meowing@bungmunch.edu>, in ><89j76n$31i7@edrn.newsguy.com> wrote: >+ In article <87r9dw1yqz.fsf@erlenstar.demon.co.uk>, Andrew Gierth mewled: >+ > >+ >>>>>> "Curt" == Curt Welch <curt@kcwc.com> writes: >+ > >+ > >> A server would actually be better off indexing *all* the headers >+ > >> in an article, >+ > >+ > Curt> I think this HEADERS command will encourage future designs to >+ > Curt> do just that. >+ > >+ >How do you suggest multiple instances of a header be handled? >+ > >+ >(As a server implementor, I personally don't feel that the overhead of >+ >indexing 24kbytes per post of meower vanity headers is really worth it >+ >just to support HEADERS X-Fuckkkhead * or whatever.) >+ >+ That would be X-FucKKKhead when Stan KKKalisch is mentioned. >+ Any others come to mind? > >Isn't there an X-Meow? > >Meow. > >James - you forgot to say Meow. You owe Fluffy $1. Meow. *I* don't owe Fluffy squat!
Technical Issue on Header Indexing (was: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT))
Author: Concerned Meower
Date: Wed, 01 Mar 2000 00:00
Date: Wed, 01 Mar 2000 00:00
21 lines
1634 bytes
1634 bytes
In article <87r9dw1yqz.fsf@erlenstar.demon.co.uk>, Andrew Gierth mewled: > >>>>>> "Curt" == Curt Welch <curt@kcwc.com> writes: > > >> A server would actually be better off indexing *all* the headers > >> in an article, > > Curt> I think this HEADERS command will encourage future designs to > Curt> do just that. > >How do you suggest multiple instances of a header be handled? > >(As a server implementor, I personally don't feel that the overhead of >indexing 24kbytes per post of meower vanity headers is really worth it >just to support HEADERS X-Fuckkkhead * or whatever.) That would be X-FucKKKhead when Stan KKKalisch is mentioned. Any others come to mind?
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Terrance Richard Boyes
Date: Wed, 01 Mar 2000 00:00
Date: Wed, 01 Mar 2000 00:00
83 lines
5326 bytes
5326 bytes
Curt Welch <curt@kcwc.com> wrote: > Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: >> >>>>> "Curt" == Curt Welch <curt@kcwc.com> writes: >> >> >> A server would actually be better off indexing *all* the headers >> >> in an article, >> >> Curt> I think this HEADERS command will encourage future designs to >> Curt> do just that. >> >> How do you suggest multiple instances of a header be handled? >From which POV ? As far as database storage goes it's a standard piece of relational design (with all the associated resource issues). Of course whether or not storage of such muliple headers /should/ be done is an entirely different matter. If they are then as far as returning data to a client application someone has to decide whether or not a multiline response is allowed by this command, if so clients/servers should be coded to allow it. > Never thought about it. Good question. > What does/should PAT do about that? In my server, you only get the first > header for those commands. But with the PAT format, you could of > course print out multiple responses for the same header. But I doubt any > implementation of PAT does that. > My HEADERS command would be forced to drop the extra headers, or combine > them all together as if they were one long header. > Are there any headers in common use that are allowed to be duplicated. > X-Comments: is something I think I've seen duplicated (or ones like that). > That would be one that would be OK to combine together I think. But if it's used for filter pattern matching then you could get the situation where a pattern is matched over the combined header but not in any individual instance. Which may give results that the end-user does not expect/want. [snip] > I'm thinking that maybe the correct approach is to ONLY return the first > header in the cases where it's duplicated. This would reinforce the > convention that "real" Usenet headers can not be duplicated. The HEADERS > command could still be used to help locate articles which had a To: header, > but if you want to be sure to get all the data for these non-standard > Usenet headers, you would just have to use the HEAD command. That's fine if you only want to know that a tuple exists, but for anything more than that it's just bad news. A couple of years ago Ingres changed its behaviour from returning the "first" row to generating an error in such a situation, that broke many peoples applications :( > HEADERS isn't meant to be the end-all solution for all your header needs. > It's just meant to be a "beter" form of XOVER that 1) allows applications > to leave out what they don't need, and 2) add in extras they may want like > MIME headers or Organization etc. >> (As a server implementor, I personally don't feel that the overhead of >> indexing 24kbytes per post of meower vanity headers is really worth it >> just to support HEADERS X-Fuckkkhead * or whatever.) > I don't index anything as it comes in. I do it all on demand and then > cache it. So I won't be wasting any time or storage indexing X-Fuckkkhead > headers unless a user starts asking for it -- and then the work is only > associated with the group in which they ask that. And, actually, my > current design is only able to cache the standard XOVER data, so > X-Fuckkkhead requests are always going to be slow. That's a reasonable approach re: the storage issues, but doesn't address the problem of whether 1 or all headers of the same type should be returned. -- <URL:http://www.pierrot.co.uk/> Team AMIGA Bespoke Client/Server RDBMS Analysis, Design and Programming....
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Curt Welch
Date: Wed, 01 Mar 2000 00:00
Date: Wed, 01 Mar 2000 00:00
36 lines
2416 bytes
2416 bytes
tez@pierrot.co.uk (Terrance Richard Boyes) wrote: > Curt Welch <curt@kcwc.com> wrote: > > Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: > >> >>>>> "Curt" == Curt Welch <curt@kcwc.com> writes: > >> > That's a reasonable approach re: the storage issues, but doesn't > address the problem of whether 1 or all headers of the same > type should be returned. I've got a version of the HEADERS command working on my server now and I've just punted on the issue of multiple headers. If there's more than one, only the first is used, the rest are ignored. What do XHDR/XPAT/PAT do about this in other servers? Inn for example? Here's one to check: <8EE99AE63luutrangeocities@63.211.125.90> It's a recent news.software.readers article with two X-Abuse-Info: headers Does any server that implements XHDR/XPAT /PAT return both lines for this? I'm guessing they don't. And I don't see much need to go to the extra trouble to do that with the the HEADERS command either. I found a Typhoon system to test and discoverd that it would not return headers for anything besides the standard XOVER headers. And trying to find an example of one of those being duplicated was an exercise I didn't undertake. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Technical Issue on Header Indexing (was: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT))
Author: ! SEE ME NAKED 23758 bytes
Date: Wed, 01 Mar 2000 00:00
Date: Wed, 01 Mar 2000 00:00
25 lines
2461 bytes
2461 bytes
On Wed 2374 September 1993, Concerned Meower wrote:
> In article <87r9dw1yqz.fsf@erlenstar.demon.co.uk>, Andrew Gierth mewled:
> >(As a server implementor, I personally don't feel that the overhead of
> >indexing 24kbytes per post of meower vanity headers is really worth it
> >just to support HEADERS X-Fuckkkhead * or whatever.)
>
> That would be X-FucKKKhead when Stan KKKalisch is mentioned.
> Any others come to mind?
DON'T FORGET TO ADD X-PEDOPHILE: BARRY BOUWSMA TO ALL YOUR POSTS!
OR THEY WILL BE CANCELLED!@ NO! WAIT!!! THAT SHOULD NOT BE
X-PEDOPHILE, THAT SHOULD BE THE PEDOPHILE HEADER!!! BARRY BOUWSMA
IS NOT AN EX-PEDOPHILE! WE NEED TO GET THIS HEADER STANDARDIZED!!!!!!!!!!!!!!!!!!!
--
*** This was posted with the express permission of ***
******************************************************
** HIS HIGHNESS KAAZMANN LORD AND MASTER OF USENET **
******************************************************
********* We are simple servants of his will *********
Re: Technical Issue on Header Indexing (was: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT))
Author: Buff�rd L. H�tchett
Date: Wed, 01 Mar 2000 00:00
Date: Wed, 01 Mar 2000 00:00
38 lines
2502 bytes
2502 bytes
STEVEN GUY POLIS DOWNLOADS KIDDIE PORN FROM EXILED CZECH PEDOPHILE BARRY BOUWSMA wrote: > > On 1 Mar 2000 12:15:47 -0600, Earl Camembert > <camembert@falbo.sctv.org> wrote: > > >Concerned Meower wrote: > >> > >> In article <87r9dw1yqz.fsf@erlenstar.demon.co.uk>, Andrew Gierth mewled: > >> > > >> >>>>>> "Curt" == Curt Welch <curt@kcwc.com> writes: > >> > > >> > >> A server would actually be better off indexing *all* the headers > >> > >> in an article, > >> > > >> > Curt> I think this HEADERS command will encourage future designs to > >> > Curt> do just that. > >> > > >> >How do you suggest multiple instances of a header be handled? > >> > > >> >(As a server implementor, I personally don't feel that the overhead of > >> >indexing 24kbytes per post of meower vanity headers is really worth it > >> >just to support HEADERS X-Fuckkkhead * or whatever.) > >> > >> That would be X-FucKKKhead when Stan KKKalisch is mentioned. > >> Any others come to mind? > > > >Andrew seems to be working on it. > > He does seem the type to think of "k" as a letter > which is best presented with 2 other uniquely identical > letters, e.g. KKK. It must give him something to do > in between his NAMBLA officer board meetings. Is a known bottom like Andrew allowed to be an officer of anything?
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Jeremy
Date: Thu, 02 Mar 2000 00:00
Date: Thu, 02 Mar 2000 00:00
37 lines
2427 bytes
2427 bytes
Chunk Light Fluffy <meowing@banet.net> wrote: >> Well. You could either return just the first one, or you could >> combine them into one response. > > Combining works, one per line (with the "natural" leading whitespace in > continued headers pointing out where multiples begin). Not really -- we're talking overview-like responses, so you have the whole response on one line in the returned data. If you concat them with whitespace, you won't be able to tell the difference between two instances of a header, and one header with two things in it. >> Once you do a HEAD or an ARTICLE, you've got all the headers. > > Yeah, but that's way slow. It's probably not quite as evil as MODE > READER, but it's damn close. Right, but it's still better than the current state of affairs, where a server tells you "501 header X-Meow not in index", and then you have to fall back on doing a HEAD on every frigging article in the newsgroup to get the headers you want. This is the kind of situation I would like to avoid by requiring the server to return HEADERS information on any desired header -- right now, if you want to use a non-overview header, and your server doesn't do XHDR on them, it ends up being slow, using a lot of bandwidth, and using more server resources than if the server just returned the darned XHDR information in the first place. My theory is that if HEADERS were required to return any arbitrary header, then server implementations wouldn't bother restricting XHDR anymore either, and life would be better all around both for people using HEADERS commands and for people not using them. -- Jeremy ( jeremy@exit109.com | bofh@netscum.dk )
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Andrew Gierth
Date: Thu, 02 Mar 2000 00:00
Date: Thu, 02 Mar 2000 00:00
24 lines
1987 bytes
1987 bytes
>>>>> "Curt" == Curt Welch <curt@kcwc.com> writes: [multiple copies of header] Curt> What do XHDR/XPAT/PAT do about this in other servers? Inn for Curt> example? Both INN and Demon's (custom) server return only the first header in response to XHDR. Demon's server doesn't support XPAT at all, and current INN versions only support it on overview headers, but XPAT on INN 1.7.2 fails to match anything if you specify a pattern that exists only in the second copy of a header. Curt> I found a Typhoon system to test and discoverd that it would Curt> not return headers for anything besides the standard XOVER Curt> headers. And trying to find an example of one of those being Curt> duplicated was an exercise I didn't undertake. None of the XOVER headers should ever be duplicated in any case. -- Andrew.
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Kjetil Torgrim Homme
Date: Thu, 02 Mar 2000 00:00
Date: Thu, 02 Mar 2000 00:00
25 lines
1870 bytes
1870 bytes
[J. Moreno] > Here's what it sends when I type in "welch": > > <0000012C< XPAT From 39137-41292 *[Ww][Ee�83��8E��8F��90��91�][Ll][Cc�82��8D� > <00000159< ][Hh]* > > As you can see, the default is to do some text translation so that if > I'm searching for W�lch or W�lch it'll find it, The character set seems completely broken, though. Should the server normalise the headers into a specific character set? That is, de-RFC1522 them into UTF-8? > that can be changed so that it sends: > > <0000017E< XPAT From 164296-170583 *[Ww][EeEeeee][Ll][CcCc][Hh]* I don't see the utility of the duplication. Kjetil T.
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Curt Welch
Date: Thu, 02 Mar 2000 00:00
Date: Thu, 02 Mar 2000 00:00
15 lines
1849 bytes
1849 bytes
meowing@banet.net (Chunk Light Fluffy) wrote: > slrn uses it to reconstruct threads. Also, the NewsWatcher family > offers it a search tool. I'm not convinced that slrn's use of the > command is a great way to get that information, but the XPAT search is > the one feature of the NewsWatcher that I really miss elsewhere. Ok, so there are some newsreaders taking advantage of it. That's good to hear. I guess like most things, if it's available, someone will take advantage of it. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Technical Issue on Header Indexing
Author: STEVEN GUY POLIS DOWNLOADS KIDDI...
Date: Thu, 02 Mar 2000 00:00
Date: Thu, 02 Mar 2000 00:00
39 lines
2496 bytes
2496 bytes
On 2 Mar 2000 00:10:33 -0600, "Buff�rd L. H�tchett" <bufford@hattchett.net> wrote: >admin@parrot.net wrote: >> >> In alt.fan.karl-malden.nose Concerned Meower <meowing@bungmunch.edu> wrote: >> >> > In article <87r9dw1yqz.fsf@erlenstar.demon.co.uk>, Andrew Gierth mewled: >> >> >> >>>>>>> "Curt" == Curt Welch <curt@kcwc.com> writes: >> >> >> >> >> A server would actually be better off indexing *all* the headers >> >> >> in an article, >> >> >> >> Curt> I think this HEADERS command will encourage future designs to >> >> Curt> do just that. >> >> >> >>How do you suggest multiple instances of a header be handled? >> >> >> >>(As a server implementor, I personally don't feel that the overhead of >> >>indexing 24kbytes per post of meower vanity headers is really worth it >> >>just to support HEADERS X-Fuckkkhead * or whatever.) >> >> > That would be X-FucKKKhead when Stan KKKalisch is mentioned. >> > Any others come to mind? >> >> That would be X-Human-Urinal when Timbolina Thorne is mentioned. >> Any others come to mind? > >That would be X-DeaDDiE when Gareth Slinn is mentioned. >Any others come to mind? That would be X-FalsePositive-Cancelbot when Ken Lucke is mentioned. Any others come to mind?
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Curt Welch
Date: Thu, 02 Mar 2000 00:00
Date: Thu, 02 Mar 2000 00:00
39 lines
2752 bytes
2752 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: > >>>>> "Curt" == Curt Welch <curt@kcwc.com> writes: > > [multiple copies of header] > > Curt> What do XHDR/XPAT/PAT do about this in other servers? Inn for > Curt> example? > > Both INN and Demon's (custom) server return only the first header in > response to XHDR. Demon's server doesn't support XPAT at all, and > current INN versions only support it on overview headers, but XPAT on > INN 1.7.2 fails to match anything if you specify a pattern that exists > only in the second copy of a header. That's about what I expected to hear. Didn't realize that INN lost the ability to do XPAT on other headers in the 2.0 migration. Do you know if it was taken out on purpose, or just not re-implemented? I don't really see any need to support the duplicate header thing in the the HEADERS command if no one else ever supported it in any of the XHDR or XPAT type commands. Does anyone know of any newsreaders that actually use XPAT? Any details about how they use it? The single wildmats are really too simple to do any type of real kill file or filter work. All the clients I know end up doing all that type of work after you download all the headers (or as you are downloading). So I can only assume if it has been put to use, it's just for limited special functions. I find it useful as a tool for doing some simple manual seraches but I've never used it in any type of client or even script before. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: J. Moreno
Date: Thu, 02 Mar 2000 00:00
Date: Thu, 02 Mar 2000 00:00
36 lines
2483 bytes
2483 bytes
In article <1rya81ct4g.fsf@haey.ifi.uio.no>,
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> [J. Moreno]
>
> > Here's what it sends when I type in "welch":
> >
> > <0000012C< XPAT From 39137-41292
> > *[Ww][Ee�83��8E��8F��90��91�][Ll][Cc�82��8D�
> > <00000159< ][Hh]*
> >
> > As you can see, the default is to do some text translation so that if
> > I'm searching for W�lch or W�lch it'll find it,
>
> The character set seems completely broken, though. Should the server
> normalise the headers into a specific character set? That is,
> de-RFC1522 them into UTF-8?
I don't see why, the client could/should have a better idea of what is
being used and can do any conversion that is necessary.
> > that can be changed so that it sends:
> >
> > <0000017E< XPAT From 164296-170583 *[Ww][EeEeeee][Ll][CcCc][Hh]*
>
> I don't see the utility of the duplication.
My guess would be that it simplified the algorithm for Text Conversion,
and since it doesn't cause any problem there was no need to refine it
to eliminate the duplication.
--
J. B. Moreno
Pessimist: Half empty Optimist: Half full Engineer: Wrong size glass
Re: Technical Issue on Header Indexing
Author: Buff�rd L. H�tchett
Date: Thu, 02 Mar 2000 00:00
Date: Thu, 02 Mar 2000 00:00
30 lines
2106 bytes
2106 bytes
admin@parrot.net wrote: > > In alt.fan.karl-malden.nose Concerned Meower <meowing@bungmunch.edu> wrote: > > > In article <87r9dw1yqz.fsf@erlenstar.demon.co.uk>, Andrew Gierth mewled: > >> > >>>>>>> "Curt" == Curt Welch <curt@kcwc.com> writes: > >> > >> >> A server would actually be better off indexing *all* the headers > >> >> in an article, > >> > >> Curt> I think this HEADERS command will encourage future designs to > >> Curt> do just that. > >> > >>How do you suggest multiple instances of a header be handled? > >> > >>(As a server implementor, I personally don't feel that the overhead of > >>indexing 24kbytes per post of meower vanity headers is really worth it > >>just to support HEADERS X-Fuckkkhead * or whatever.) > > > That would be X-FucKKKhead when Stan KKKalisch is mentioned. > > Any others come to mind? > > That would be X-Human-Urinal when Timbolina Thorne is mentioned. > Any others come to mind? That would be X-DeaDDiE when Gareth Slinn is mentioned. Any others come to mind?
Re: Technical Issue on Header Indexing
Author: admin
Date: Thu, 02 Mar 2000 00:00
Date: Thu, 02 Mar 2000 00:00
31 lines
2143 bytes
2143 bytes
In alt.fan.karl-malden.nose Concerned Meower <meowing@bungmunch.edu> wrote:
> In article <87r9dw1yqz.fsf@erlenstar.demon.co.uk>, Andrew Gierth mewled:
>>
>>>>>>> "Curt" == Curt Welch <curt@kcwc.com> writes:
>>
>> >> A server would actually be better off indexing *all* the headers
>> >> in an article,
>>
>> Curt> I think this HEADERS command will encourage future designs to
>> Curt> do just that.
>>
>>How do you suggest multiple instances of a header be handled?
>>
>>(As a server implementor, I personally don't feel that the overhead of
>>indexing 24kbytes per post of meower vanity headers is really worth it
>>just to support HEADERS X-Fuckkkhead * or whatever.)
> That would be X-FucKKKhead when Stan KKKalisch is mentioned.
> Any others come to mind?
That would be X-Human-Urinal when Timbolina Thorne is mentioned.
Any others come to mind?
--
{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{} \|/
{} RogerW rogerw@newsguy.com {} 0< -- parrot.net!
{} http://www.parrot.net admin@parrot.net {} ^^^^(*)^^^^
{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{} ^^ / \ ^^
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Chunk Light Fluffy
Date: Thu, 02 Mar 2000 00:00
Date: Thu, 02 Mar 2000 00:00
29 lines
2285 bytes
2285 bytes
Curt Welch wrote: > That's about what I expected to hear. Didn't realize that INN lost the > ability to do XPAT on other headers in the 2.0 migration. Actually that happened when the new overview k0dez were integrated into 2.3. > Do you know if it was taken out on purpose, or just not > re-implemented? It's really just that it hasn't been reimplemented. XHDR got it back; I've been meaning for ages to submit a patch to get it back into XPAT but have had like zero time to play with INN lately. Incidentally, at least some versions of Typhoon do XHDR and XPAT wrong, wrong, wrong. For headers that package doesn't want to handle, it returns something like `221 (none)' and much hilarity ensues when a client actually tries to *use* that value. [...] > Does anyone know of any newsreaders that actually use XPAT? Any details > about how they use it? slrn uses it to reconstruct threads. Also, the NewsWatcher family offers it a search tool. I'm not convinced that slrn's use of the command is a great way to get that information, but the XPAT search is the one feature of the NewsWatcher that I really miss elsewhere.
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: J. Moreno
Date: Thu, 02 Mar 2000 00:00
Date: Thu, 02 Mar 2000 00:00
29 lines
2260 bytes
2260 bytes
In article <20000301221340.078$XA@newsreader.com>, Curt Welch <curt@kcwc.com> wrote: > Does anyone know of any newsreaders that actually use XPAT? Any > details about how they use it? YANW 4 (and possibly earlier versions), use XPAT for article searching (click on an un-opened group, tell it to search, up pops a dialog giving the option to search in Subject, From, Keywords, Summary, Date, Organization, References or Distribution). If it finds any up pops a window with a group (subscription) window where only articles that match will be listed when opened. Here's what it sends when I type in "welch": <0000012C< XPAT From 39137-41292 *[Ww][Ee�83��8E��8F��90��91�][Ll][Cc�82��8D� <00000159< ][Hh]* As you can see, the default is to do some text translation so that if I'm searching for W�lch or W�lch it'll find it, that can be changed so that it sends: <0000017E< XPAT From 164296-170583 *[Ww][EeEeeee][Ll][CcCc][Hh]* -- J. B. Moreno Pessimist: Half empty Optimist: Half full Engineer: Wrong size glass
Headers command (was: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT))
Author: J. Moreno
Date: Fri, 03 Mar 2000 00:00
Date: Fri, 03 Mar 2000 00:00
16 lines
1514 bytes
1514 bytes
In article <20000228025703.219$Yt@newsreader.com>, Curt Welch <curt@kcwc.com> wrote: > But, in writing this, I came up with this syntax by accident > which even I think is kinda neat: > > HEADERS 1- Message-ID From:*Jeremy* Subject:*NNTP* X-Meow Is there an implementation reason to make the pattern case sensitive? At least for a-zA-Z I think insensitive would be a lot better. -- J. B. Moreno Pessimist: Half empty Optimist: Half full Engineer: Wrong size glass
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Andrew
Date: Fri, 03 Mar 2000 00:00
Date: Fri, 03 Mar 2000 00:00
35 lines
2623 bytes
2623 bytes
In article <952036622.999006@news.netscum.dk>, Jeremy wrote: >Right, but it's still better than the current state of affairs, where a >server tells you "501 header X-Meow not in index", and then you have to >fall back on doing a HEAD on every frigging article in the newsgroup to >get the headers you want. This is the kind of situation I would like to >avoid by requiring the server to return HEADERS information on any >desired header -- right now, if you want to use a non-overview header, >and your server doesn't do XHDR on them, it ends up being slow, using a >lot of bandwidth, and using more server resources than if the server just >returned the darned XHDR information in the first place. So instead you want the server to devote more resources, in order to be able to handle HEADERS (or XHDR or XPAT) on arbitrary headers without thrashing itself to death fetching articles. Doing HEAD on every article in the group could well be less strain on the server than doing HEADERS X-Meow *? where there are few matches, unless the X-Meow headers have been pre-indexed as the overview headers are. Pre-indexing all the headers in turn impacts on the performance of XOVER (or XHDR, XPAT or HEADERS on overview headers), or alternatively impacts on the performance of the incoming article spooler, depending on how the indexes are organized. There is also the issue of duplicates to resolve. >My theory is that if HEADERS were required to return any arbitrary header, My theory is that such a requirement will be ignored by at least some implementors. -- Andrew, Supernews http://www.supernews.com - UK and US individual and corporate NNTP services
Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Author: Andrew
Date: Fri, 03 Mar 2000 00:00
Date: Fri, 03 Mar 2000 00:00
43 lines
2988 bytes
2988 bytes
In article <952060941.852271@news.netscum.dk>, Jeremy wrote: >Andrew <andrew@supernews.com> wrote: >> Doing HEAD on every article in the group could well be less strain on the >> server than doing HEADERS X-Meow *? where there are few matches, unless >> the X-Meow headers have been pre-indexed as the overview headers are. > >Really? I'll take your word on that; you would know better than I. What it amounts to is that in both cases you're going to the spool for the headers of each article; with HEAD, you're at least limited by the client, with HEADERS (or XPAT) either you have to limit the rate of spool fetches artificially, or you end up thrashing the disks and slowing everything else down. On the other hand there may be good (unrelated) reasons to discourage the HEAD-on-every-article idea - the combination of the proposed HEADERS and the NEWNEWS+XOVER idea (NEWHEADERS?) might help in that respect. >> Pre-indexing all the headers in turn impacts on the performance of XOVER >> (or XHDR, XPAT or HEADERS on overview headers), or alternatively impacts >> on the performance of the incoming article spooler, depending on how the >> indexes are organized. > >As a tradeoff, I'll take it. The added functionality would be worth it. >The thing is, I'm seeing *reduced* functionality (XHDR only on overview >headers) for the sake of making things easier at the server side, and I >don't think that's a good thing, going forward. The problem is that XOVER happens a _lot_, and is likely to continue to do so; even if HEADERS was implemented and became widespread, the most common use would still be to fetch approximately the same set of headers that are currently used. The implementation would not itself be too hard - simplest solution is just to reserve the last index slot to mean "all the rest of the headers" - but it might have to involve putting limits on the total size of the header that wouldn't otherwise be necessary. -- Andrew, Supernews http://www.supernews.com - UK and US individual and corporate NNTP services
Page 1 of 2 • 68 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