Article View: news.software.readers
Article #59770Re: Gravity - Need Help with Rule
From: Paul Neubauer
Date: Tue, 28 Mar 2000 00:00
Date: Tue, 28 Mar 2000 00:00
77 lines
4843 bytes
4843 bytes
Apolgies for the length of this article, but it does contain a fair amount of what I hope is useful explanation. There are some gripes too, but, after all, this is usenet.;-) (BTW, I CCed this to tony@microplanet.com :-) In news.software.readers, rayz@phonon.com wrote... >I just discovered this when I was looking for something else: > >8. You can add default custom headers (such as X-No-Archive) by typing >them in the �Custom headers� edit box. Note that these fields are >transmitted �as is� just after the normal headers Gravity generates and >before the body. > >Perhaps a unique identifier can be added to the header for the purpose of >searches. You can add unique identifiers in the headers, but it won't help for this purpose. Gravity's rules can refer to the contents of ONLY the From, Subject, Date and Message-ID headers. No other headers are examined for use by rules, not even if you specify checking the body of the message. The reason that Gravity looks only at a subset of headers is for speed. When a newsreader connects to an NNTP host (i.e., a newsserver) it gets certain information about messages without downloading the entire messages. This is the information that allows you to see the header information in the thread pane of Gravity. Modern newsservers prepare that information in a separate data file or database and serve it up in response to an XOVER request from the reader software. The XOVER database contains the From, Subject, Date and Message-ID headers along with the References header (used for threading) and *optionally* (though usually) the Xref header, which shows crossposting information and local article number -- in fact the most common newsservers, e.g., INND and Typhoon, serve Xref with the XOVER data by default and their docs explicitly recommend doing so. Gravity uses the References header for threading, but does not allow rules to refer to it and AFAICT, simply throws away the Xref header, thereby preventing you from writing rules saying something like "Mark any articles crossposted to alt.flame as read." Personally, I would find it useful to be able to write rules that refer to both crossposting information and rules that refer to the References header, where I could not only kill certain bozos, but also, for example, messages that are direct replies to those bozos, without killing (ignoring) entire threads. A rule that could examine the References header and mark as read any article where the last item (Message-ID) in the References matched @foo.bar.com\><~0> (assuming the bozo in question was the only known poster in that group posting from the server foo.bar.com :-) would be pretty useful to me. All of the other headers are not included in the XOVER data and their use is (sensibly) not encouraged in rules. After all, you would have to download the message bodies to get those other headers. OTOH, if you are willing to go to the expense/difficulty of having message bodies downloaded for rules, then why not allow rules that examine bodies to examine the additional headers at the same time? The additional expense is minimal, in fact, the rule must, at least, determine where the headers end and the body begins, so it must scan the headers anyway. I would imagine that it would actually be simpler for a "body" rule to include the headers than to exclude them. Similarly, why not allow a rule that looks for a string or RE in "headers" to look at all the headers received from XOVER? Why throw the data away before looking at it? This has never made sense to me. In summary, the idea of adding a unique header will not work, and even if it did, it would be of no help in determining which articles to download because a rule that was able to look at such a header would have to download the full article already. Paul -- Paul Neubauer prn@bsu.edu http://home.bsu.edu/prn/ PGP Public Key at http://home.bsu.edu/prn/key.html
Technical Details
Message-ID:
<MPG.134a926fc9acb155989851@news.bsu.edu>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!not-for-mailReferences:
<8bga84$64o$1@nnrp1.deja.com> <MPG.1345c1b1abb8d58c989867@news.naplesfl.net> <MPG.13497dc44a65076f989755@news.javanet.com>Show Full Headers
Complete Article Headers
Message-ID: <MPG.134a926fc9acb155989851@news.bsu.edu> Subject: Re: Gravity - Need Help with Rule Date: Tue, 28 Mar 2000 00:00:00 +0000 From: Paul Neubauer <prn@bsu.edu> References: <8bga84$64o$1@nnrp1.deja.com> <MPG.1345c1b1abb8d58c989867@news.naplesfl.net> <MPG.13497dc44a65076f989755@news.javanet.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!not-for-mail X-Deja-AN: 603429107 X-Trace: portal.bsu.edu 954255463 147.226.83.211 (Tue, 28 Mar 2000 09:57:43 EST) Organization: Ball State University NNTP-Posting-Date: Tue, 28 Mar 2000 09:57:43 EST Newsgroups: news.software.readers