Thread View: news.software.readers
10 messages
10 total messages
Started by thomasm516
Fri, 24 Mar 2000 00:00
Gravity - Need Help with Rule
Author: thomasm516
Date: Fri, 24 Mar 2000 00:00
Date: Fri, 24 Mar 2000 00:00
29 lines
2039 bytes
2039 bytes
I'm using Gravity 2.30b1 build 1751. I have a rule that retrieves article bodies, and appends the article to a text file if the article is: 1) In reply to my message OR 2) From contains "Thomas M" The second condition assures that my original message is also downloaded. Most of the time, this is not necessary because people quote the original message in their replies, but sometimes it is advantageous to have the original message downloaded. But that second condition also causes a problem. For example, messages with "Thomas Mills" or "Thomas Mason" or "Thomas M." or "Thomas M Smith" will also be downloaded. I could add a more unique identifier to my Gravity configuration. For example, I could make it so that messages I post show "Thomas M1789" in the From field. But for various reasons, it's advantageous for me to avoid that if possible. Is there a way to write the rule so that it picks up only "Thomas M"? For example, is it possible to make the rule pick up only whole words, so that the rule will not match any of the above examples? Is a way to make it download only those messages where the From is exactly 8 characters long and contains "Thomas M"? Thanks for any help you can offer. --Tom Sent via Deja.com http://www.deja.com/ Before you buy.
Re: Gravity - Need Help with Rule
Author: Raymond Zeitler
Date: Fri, 24 Mar 2000 00:00
Date: Fri, 24 Mar 2000 00:00
44 lines
2520 bytes
2520 bytes
I'm not terribly proficient with Rules, myself, but I think you can add to your existing rule a search on some other parameter in the header such as "NNTP-Posting-Host: www.xxx.yyy.zzz", where www.xxx.yyy.zzz is the IP address of your machine if you're using static IP. I've heard that it possible also to detect Message-IDs that begin with MPG to indicate a post originating with Gravity. HTH In article <8bga84$64o$1@nnrp1.deja.com>, thomasm516@my-deja.com says... > I'm using Gravity 2.30b1 build 1751. I have a rule that retrieves > article bodies, and appends the article to a text file if the article > is: > 1) In reply to my message > OR > 2) From contains "Thomas M" > The second condition assures that my original message is also > downloaded. Most of the time, this is not necessary because people > quote the original message in their replies, but sometimes it is > advantageous to have the original message downloaded. > But that second condition also causes a problem. For example, messages > with "Thomas Mills" or "Thomas Mason" or "Thomas M." or "Thomas M > Smith" will also be downloaded. I could add a more unique identifier > to my Gravity configuration. For example, I could make it so that > messages I post show "Thomas M1789" in the From field. But for various > reasons, it's advantageous for me to avoid that if possible. > Is there a way to write the rule so that it picks up only "Thomas M"? > For example, is it possible to make the rule pick up only whole words, > so that the rule will not match any of the above examples? Is a way to > make it download only those messages where the From is exactly 8 > characters long and contains "Thomas M"? > Thanks for any help you can offer. > --Tom > > > Sent via Deja.com http://www.deja.com/ > Before you buy. >
Re: Gravity - Need Help with Rule
Author: Tom B.
Date: Fri, 24 Mar 2000 00:00
Date: Fri, 24 Mar 2000 00:00
31 lines
1883 bytes
1883 bytes
thomasm516@my-deja.com, thomasm516@my-deja.com, posted ..
> 2) From contains "Thomas M"
[...]
> But that second condition also causes a problem. For example, messages
> with "Thomas Mills" or "Thomas Mason" or "Thomas M." or "Thomas M
> Smith" will also be downloaded. I could add a more unique identifier
> to my Gravity configuration.
[...]
> Is a way to
> make it download only those messages where the From is exactly 8
> characters long and contains "Thomas M"?
> Thanks for any help you can offer.
We could probably come up with a regular expression to do this if we
knew exactly what your from line looks like. But I think it is simpler
to search "from" for my email address which is unique (or least close
enough). For example, even though Gravity shows from "Tom B." in the
display my from line is actually like this (use H to toggle the
full header display):
From: Tom B. <nfn03862@naples.net>
So, if I filter on nfn03862@naples.net I don't get false hits. If you
use a dummy unique email, it is recommended to end it with .invalid
--
Tom B. Naples FL ** Gravity Page **
http://www.naplesfl.net/~tbates/gravity/
Re: Gravity - Need Help with Rule
Author: Raymond Zeitler
Date: Mon, 27 Mar 2000 00:00
Date: Mon, 27 Mar 2000 00:00
39 lines
2348 bytes
2348 bytes
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. In article <MPG.1345c1b1abb8d58c989867@news.naplesfl.net>, nfn03862@naples.net says... > thomasm516@my-deja.com, thomasm516@my-deja.com, posted .. > > > 2) From contains "Thomas M" > [...] > > But that second condition also causes a problem. For example, messages > > with "Thomas Mills" or "Thomas Mason" or "Thomas M." or "Thomas M > > Smith" will also be downloaded. I could add a more unique identifier > > to my Gravity configuration. > [...] > > Is a way to > > make it download only those messages where the From is exactly 8 > > characters long and contains "Thomas M"? > > Thanks for any help you can offer. > > We could probably come up with a regular expression to do this if we > knew exactly what your from line looks like. But I think it is simpler > to search "from" for my email address which is unique (or least close > enough). For example, even though Gravity shows from "Tom B." in the > display my from line is actually like this (use H to toggle the > full header display): > > From: Tom B. <nfn03862@naples.net> > > So, if I filter on nfn03862@naples.net I don't get false hits. If you > use a dummy unique email, it is recommended to end it with .invalid
Re: Gravity - Need Help with Rule
Author: J. B. Moreno
Date: Tue, 28 Mar 2000 00:00
Date: Tue, 28 Mar 2000 00:00
19 lines
1739 bytes
1739 bytes
Paul Neubauer <prn@bsu.edu> wrote: > 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. Not necessarily, there is a command to get specific headers without getting the whole body -- I don't know if Gravity supports this or not (my impression is not), but it is technically feasible and it's certainly something that could be requested of Microplanet. (OTOH, the command is only supported by MOST servers and so it might not work for him even if Gravity does allow it). -- John B. Moreno
Re: Gravity - Need Help with Rule
Author: 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
Re: Gravity - Need Help with Rule
Author: Raymond Zeitler
Date: Tue, 28 Mar 2000 00:00
Date: Tue, 28 Mar 2000 00:00
10 lines
1201 bytes
1201 bytes
Thanks for such an excellent reply. No need to aplogize. In article <MPG.134a926fc9acb155989851@news.bsu.edu>, prn@bsu.edu says... > 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 :-) [snip]
Re: Gravity - Need Help with Rule
Author: J. B. Moreno
Date: Wed, 29 Mar 2000 00:00
Date: Wed, 29 Mar 2000 00:00
70 lines
4221 bytes
4221 bytes
Paul Neubauer <prn@bsu.edu> wrote: > planb@newsreaders.com wrote... > >Paul Neubauer <prn@bsu.edu> wrote: > > > >> [...] because a rule that was able to look at such a header > >> would have to download the full article already. > > > >Not necessarily, there is a command to get specific headers without > >getting the whole body -- I don't know if Gravity supports this or not > >(my impression is not), but it is technically feasible and it's > >certainly something that could be requested of Microplanet. > > Good point. AFAIK, Gravity does not support this. That's what I thought. > >(OTOH, the command is only supported by MOST servers and so it might not > >work for him even if Gravity does allow it). > > True. This is also the case with Xref in the XOVER data. However, > allowing the newsreader software to look at data that it has already > is not IMHO excessively expensive, whereas allowing it to ask for > other header information (which it may or may not receive) puts much > more burden on the servers. True, but if he is posting through Deja.com and using multiple addresses to do so, then XHDR is about his only option. (Otherwise, instead of looking for his name, he should be looking for his address). > It is true, as you point out, that not all the bodies would have to be > transported if the servers do support that (and you're right most do). > OTOH, unlike the XOVER data, the remaining headers are stored with the > bodies, so at the very least, the servers would have to access article > bodies to serve the header information. I believe this is true, but haven't looked at the source of any of the servers to verify it. In any case, it doesn't seem to be a lengthy process in most of them (and they don't need to access the FULL article, just until they come to the end of the header). > Furthermore, isn't it the case that a separate request must be sent for > each article's headers? (I really ought to check that.) Running through > all the headers for a busy newsgroup really is a lot more expensive for > the server and the client than looking through the (already supplied) > XOVER data that is provided by the server as a response to a single > request from the client. Yeah, but you don't need to run through ALL of the headers that way, just those that aren't supplied via XOVER. > All in all, I'm not sure that I would recommend that MP add support > for rules operating on arbitrary headers separate from their bodies. I > see the benefits accruing primarily in discussion groups rather than > binary groups, so the body size is more manageable when push really > comes to shove, but I really strongly wish that MP would allow rules > to examine the data that they already get and use anyway. Well, that certainly makes sense as a first step, regardless of what they do latter. OTOH, killfiles on OE users are a frequent temptation, one that I for one would like to be able to give into occasionally -- and that's not possible using just the XOVER data. -- John B. Moreno
Re: Gravity - Need Help with Rule
Author: Paul Neubauer
Date: Wed, 29 Mar 2000 00:00
Date: Wed, 29 Mar 2000 00:00
48 lines
3265 bytes
3265 bytes
In news.software.readers, planb@newsreaders.com wrote... >Paul Neubauer <prn@bsu.edu> wrote: > >> 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. > >Not necessarily, there is a command to get specific headers without >getting the whole body -- I don't know if Gravity supports this or not >(my impression is not), but it is technically feasible and it's >certainly something that could be requested of Microplanet. Good point. AFAIK, Gravity does not support this. >(OTOH, the command is only supported by MOST servers and so it might not >work for him even if Gravity does allow it). True. This is also the case with Xref in the XOVER data. However, allowing the newsreader software to look at data that it has already is not IMHO excessively expensive, whereas allowing it to ask for other header information (which it may or may not receive) puts much more burden on the servers. It is true, as you point out, that not all the bodies would have to be transported if the servers do support that (and you're right most do). OTOH, unlike the XOVER data, the remaining headers are stored with the bodies, so at the very least, the servers would have to access article bodies to serve the header information. Furthermore, isn't it the case that a separate request must be sent for each article's headers? (I really ought to check that.) Running through all the headers for a busy newsgroup really is a lot more expensive for the server and the client than looking through the (already supplied) XOVER data that is provided by the server as a response to a single request from the client. All in all, I'm not sure that I would recommend that MP add support for rules operating on arbitrary headers separate from their bodies. I see the benefits accruing primarily in discussion groups rather than binary groups, so the body size is more manageable when push really comes to shove, but I really strongly wish that MP would allow rules to examine the data that they already get and use anyway. Paul -- Paul Neubauer prn@bsu.edu http://home.bsu.edu/prn/ PGP Public Key at http://home.bsu.edu/prn/key.html
Re: Gravity - Need Help with Rule
Author: Alan Miller
Date: Wed, 19 Apr 2000 00:00
Date: Wed, 19 Apr 2000 00:00
12 lines
1106 bytes
1106 bytes
[This followup was posted to news.software.readers and a copy was sent to the cited author.] thomasm516@my-deja.com (thomasm516@my-deja.com) wrote: >Is there a way to write the rule so that it picks up only "Thomas M"? Have you considered tacking [^a-zA-Z] in immediately after the M? That should keep it from anything that has alpha characters following it. ajm
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