🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44651

Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)

#44651
From: Curt Welch
Date: Wed, 01 Mar 2000 00:00
60 lines
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/

Technical Details
Message-ID: <20000301001558.894$gA@newsreader.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <87aeknd2ua.fsf@erlenstar.demon.co.uk> <20000228153833.742$B7@newsreader.com> <951779481.407957@news.netscum.dk> <20000228212608.617$kG@newsreader.com> <951884442.521626@news.netscum.dk>

Show Full Headers
Complete Article Headers
Message-ID: <20000301001558.894$gA@newsreader.com>
Subject: Re: [NNTP Draft] 9.4 The LIST Keyword (includes OVER & PAT)
Date: Wed, 01 Mar 2000 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <87aeknd2ua.fsf@erlenstar.demon.co.uk> <20000228153833.742$B7@newsreader.com> <951779481.407957@news.netscum.dk> <20000228212608.617$kG@newsreader.com> <951884442.521626@news.netscum.dk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 591625983
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-User: Curt@NewsReader.Com
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
Newsgroups: news.software.nntp