🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by J. Moreno Wed, 29 Dec 1999 00:00
Re: How to create a filter in MT-NewsWatcher
#56119
Author: J. Moreno
Date: Wed, 29 Dec 1999 00:00
32 lines
1740 bytes
stefan <live@last.net> wrote:

> Hi all,
> 
> I wonder if you could help me with a filtering question?
> 
> Is there a way I could set a filer in my newsreader so that messages
> that are specific replies to my posts are highlighted?
> 
> To do this I would need to filter according to some item in the
> news-headers that is unique to *all* posts that are replies to mine.
> 
> My newsreader (MT NewsWatcher 3.0) allows me to filter on the following
> items: subject, from, keyword, summary, date, organization, newsgroups,
> references, distribution, lines, path, nntp posting-host, message-id,
> x-ref, user agent, x-newsreader, x-mailer.
> 
> Could you help me with how to create such a filter?
> 
> (Please post)

Create a filter on the references header (using regular expressions)
with

<live[^@]+@news.randori.com>$

And that ought to do it.

-- 
John Moreno

Re: How to create a filter in MT-NewsWatcher
#56081
Author: J. Moreno
Date: Wed, 29 Dec 1999 00:00
30 lines
2070 bytes
stefan <live@last.net> wrote:

> greg@apple2.com wrote:
> 
> > In article <live-23C066.12310329121999@news.randori.com>,
> > stefan <live@last.net> wrote:
> > >planb@newsreaders.com (J. Moreno) wrote:
> > 
-snip-
> > BTW, you'll get a slightly better targeted match with:
> > 
> >     <live-[^@]+@news.randori.com>$
> > 
> > i.e. with the hyphen.
-snip-> 
> It *seems* like this works the best so far (I am not sure about the
> unfolding of the header, although I think I know what you're referring
> to).  Just to be sure, I have <live-[^@]+@news.randori.com>$ put in my
> filter.  What is the hyphen you're referring to?

Look at the "In article <live-23C066.12310329121999@news.randori.com>", that
is referring to the message id in your article, and the id that will be used
as the last element of the References header in any followup. That "<live-"
(including the hyphen, aka dash) should be consistent from message to
message that you post and thus in the References header of any followups.

-- 
John Moreno

Re: How to create a filter in MT-NewsWatcher
#56082
Author: J. Moreno
Date: Wed, 29 Dec 1999 00:00
45 lines
2304 bytes
<greg@apple2.com> wrote:

> stefan <live@last.net> wrote:
> >planb@newsreaders.com (J. Moreno) wrote:
> 
> >> Create a filter on the references header (using regular expressions)
> >> with
> >> 
> >> <live[^@]+@news.randori.com>$
> >> 
> >> And that ought to do it.
> 
> > Thanks for the help.  Do I need to include the '< >' and '$'?
> 
> Yes.  The $ matches the end of line at the end of the References header,
> making sure that the ID matched is the last ID in the header (thus a 
> direct response) and the < and > are part of that Message-ID.  At the
> very least, the > is essential as without it no match to the end of the
> References header will occur.
-snip-

Yep.

> BTW, you'll get a slightly better targeted match with:
> 
>     <live-[^@]+@news.randori.com>$
> 
> i.e. with the hyphen.

Probably not going to make a real difference, but it's better practice.

> I wonder though how this reacts when the article's References header is
> folded.  Does MT-NW unfold the header before applying the filter?

It shouldn't matter (at least not in this case) -- $ doesn't mean "end
of line" but rather "end of string", so folding shouldn't make any
difference.

But I believe it uses the References header as returned by XOVER which
is of course unfolded.

-- 
John Moreno

Re: How to create a filter in MT-NewsWatcher
#56089
Author: J. Moreno
Date: Wed, 29 Dec 1999 00:00
18 lines
1767 bytes
stefan <live@last.net> wrote:

> planb@newsreaders.com (J. Moreno) wrote:
> 
> > XOVER is the command that the newsreader issues to the news server to
> > get an abbreviated version of the headers for a range of articles.
> 
> So it means you get articles faster, more or less articles?

Neither, it means that it can filter faster -- it doesn't have to get
all of the headers and then filter, it can get a portion of the headers
and filter on just them (and in most online programs like MT it is used
to present the list of Subjects/articles for you to choose from).

-- 
John Moreno

Re: How to create a filter in MT-NewsWatcher
#56104
Author: J. Moreno
Date: Wed, 29 Dec 1999 00:00
23 lines
1805 bytes
stefan <live@last.net> wrote:

> planb@newsreaders.com (J. Moreno) wrote:
> 
> > <greg@apple2.com> wrote:
> 
> > > I wonder though how this reacts when the article's References header
> > > is folded.  Does MT-NW unfold the header before applying the filter?
-snip-
> > But I believe it uses the References header as returned by XOVER which
> > is of course unfolded.
> 
> At the risk of aggravating everyone - what does XOVER mean? :)  I know
> my NewsWatcher is set to use XOVER command when getting article headers.
> (What happens if I don't use it?)

XOVER is the command that the newsreader issues to the news server to
get an abbreviated version of the headers for a range of articles.

-- 
John Moreno

Re: How to create a filter in MT-NewsWatcher
#56121
Author: greg
Date: Wed, 29 Dec 1999 00:00
39 lines
2530 bytes
In article <live-23C066.12310329121999@news.randori.com>,
stefan <live@last.net> wrote:
>planb@newsreaders.com (J. Moreno) wrote:

>> Create a filter on the references header (using regular expressions)
>> with
>> 
>> <live[^@]+@news.randori.com>$
>> 
>> And that ought to do it.

> Thanks for the help.  Do I need to include the '< >' and '$'?

Yes.  The $ matches the end of line at the end of the References header, 
making sure that the ID matched is the last ID in the header (thus a 
direct response) and the < and > are part of that Message-ID.  At the 
very least, the > is essential as without it no match to the end of the 
References header will occur.

In MT-NW, from the Help menu, select Regular Expressions, which is 
second from the bottom.  This gives a quick summarry of how regular 
expressions work.

BTW, you'll get a slightly better targeted match with:

    <live-[^@]+@news.randori.com>$

i.e. with the hyphen.

I wonder though how this reacts when the article's References header is 
folded.  Does MT-NW unfold the header before applying the filter?

-- 
 --     ---                          <greg@apple2.com>
  --   -- -- ------------------------------------------------------------------
   -- --   ---              <http://www.war-of-the-worlds.org/>
    ---         (Not associated with Quake Clan Deimos, War Machine of Mars)

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