Article View: news.software.readers
Article #85075Re: Require newsreader which can search on header fields
From: those who know me have no need o...
Date: Wed, 03 Oct 2001 12:53
Date: Wed, 03 Oct 2001 12:53
36 lines
3028 bytes
3028 bytes
<1f0lrc4.1m38c111zaybbN%planb@newsreaders.com> divulged: >XPAT -- a non-standard NNTP (which is the protocol that is used to allow >communication between the reader and the server) command that instructs >the server to search a particular header for a string and then return a >list of article numbers that match it. actually xpat searches for wildmat strings. that may not seem terribly important, but if the newsreader doesn't convert the string you enter into a wildmat it's likely that nothing will be found, unless you know this and do it yourself. xnews does this, hence you shouldn't do it yourself. i don't know if gravity does or not. let me give an example: if you wanted to locate all the articles about `searching' you would likely want to use "search" as the string to find, but the server needs to be handed a string of "*[Ss][Ee][Aa][Rr][Cc][Hh]*" if it's to find "search" anywhere in the header and with arbitrary case (i.e., no case significance), because sending only "search" will only match those headers that contain exactly and only that string, and in that case. from seeing the example you might think that the string can be a regular expression, or you might make that assumption because regexps are used elsewhere in your newsreader. be warned, a wildmat is not a regular expression, though it has some surface similarities. if you want a regexp search your newsreader would have to convert the string you enter (containing one or more regexps) into the appropriate wildmat string, along with performing addition post-processing (regexp matching) otherwise too much or nothing will be found. gravity may do this (though i doubt it), xnews certainly does not. an additional note: xnews only allows you to perform an xpat search on the subject header, it does not allow arbitrary headers to be used. -- okay, have a sig then
Technical Details
Message-ID:
<9pf1o801afi@enews3.newsguy.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!pln-e!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews3References:
<9p85m2$grj7m$1@ID-99773.news.dfncis.de> <Xns912DE742C6565gunnyyucombe@127.0.0.1> <cQju7.621$W35.26082343@nostril.pacific.net.au> <9pcnce$i5orf$1@ID-99773.news.dfncis.de> <1f0lrc4.1m38c111zaybbN%planb@newsreaders.com>Show Full Headers
Complete Article Headers
Message-ID: <9pf1o801afi@enews3.newsguy.com> Subject: Re: Require newsreader which can search on header fields Date: Wed, 03 Oct 2001 12:53:28 +0000 From: those who know me have no need of my name <not-a-real-address@usa.net> References: <9p85m2$grj7m$1@ID-99773.news.dfncis.de> <Xns912DE742C6565gunnyyucombe@127.0.0.1> <cQju7.621$W35.26082343@nostril.pacific.net.au> <9pcnce$i5orf$1@ID-99773.news.dfncis.de> <1f0lrc4.1m38c111zaybbN%planb@newsreaders.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!pln-e!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews3 Newsgroups: news.software.readers Organization: earthfriends Lines: 35 NNTP-Posting-Host: p-409.newsdawg.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.1 (Cuyahoga Valley)