Thread View: news.software.readers
5 messages
5 total messages
Started by Perry Hutchison
Sun, 30 Oct 1994 06:11
trn: search body, ignore Path
Author: Perry Hutchison
Date: Sun, 30 Oct 1994 06:11
Date: Sun, 30 Oct 1994 06:11
21 lines
1305 bytes
1305 bytes
I don't recall having seen this discussed before. Using trn, I want to select any articles in a particular group which mention "oregon" in the body or subject. The obvious solution is /oregon/a+ but that also selects anything that has "uoregon.edu" in the Path: header. I suppose I could follow it with something like /uoregon/hj but that would discard anything that had come through uoregon.edu even if it did have "oregon" in the body or subject. What I really want is for the "a" modifier to ignore the Path: altogether. Any suggestions? In case it matters, the trn version here is 3.0. Email preferred; I will summarize. -- perryh@pluto.rain.com
Re: trn: search body, ignore Path
Author: Wayne Davison
Date: Mon, 31 Oct 1994 18:36
Date: Mon, 31 Oct 1994 18:36
16 lines
1150 bytes
1150 bytes
According to Perry Hutchison <perryh@pluto.rain.com>: > Using trn, I want to select any articles in a particular group which > mention "oregon" in the body or subject. The obvious solution is > > /oregon/a+ One thing you can do is to put \b before and after a word you wish to match (\b matches a word boundry): /\boregon\b/a+ This would keep it from matching uoregon but would not stop it from matching a sitename of just oregon in the path, if such a site exists. -- Wayne Davison davison@borland.com
Re: trn: search body, ignore Path
Author: lvirden
Date: Tue, 01 Nov 1994 16:09
Date: Tue, 01 Nov 1994 16:09
11 lines
1456 bytes
1456 bytes
Even if you had it ignore the Path: it would still hit oregon in the From: or Sender: etc. headers. I have the same problem - there are certain strings that I would love to hit but to ignore their presences in the identification headers, or in the attribution lines in the body or the signatures. -- :s Great net resources sought... :s Larry W. Virden INET: lvirden@cas.org :s <URL:http://www.mps.ohio-state.edu/cgi-bin/hpp?lvirden_sig.html> The task of an educator should be to irrigate the desert not clear the forest.
Re: trn: search body, ignore Path
Author: Wayne Davison
Date: Wed, 02 Nov 1994 00:04
Date: Wed, 02 Nov 1994 00:04
20 lines
1508 bytes
1508 bytes
According to <lvirden@cas.org>: > I have the same problem - there are certain strings that I would love > to hit but to ignore their presences in the identification headers, or > in the attribution lines in the body or the signatures. How about this for a step in the right direction: /search string/b:+ Using the 'b' modifier only searches the body of the article, and it stops searching at the "-- \n" line which most(?) people still use to delimit their signature. This will let you find something in the body of the article without hitting a header and without hitting (most) signatures. This was a simple tweak in the code, but having it ignore attribution lines is a little harder. I may try to take a stab at that too, but I don't have a good algorithm for it off the top of my head. -- Wayne Davison davison@borland.com
Re: trn: search body, ignore Path
Author: lvirden
Date: Wed, 02 Nov 1994 14:51
Date: Wed, 02 Nov 1994 14:51
9 lines
1259 bytes
1259 bytes
Gee - that sounds like a good idea - let's see, this morning I compiled the enhancement in, installed it - and now I am running off to change my search to use it! Thanks guy - you are the greatest! -- :s Great net resources sought... :s Larry W. Virden INET: lvirden@cas.org :s <URL:http://www.mps.ohio-state.edu/cgi-bin/hpp?lvirden_sig.html> The task of an educator should be to irrigate the desert not clear the forest.
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