Article View: news.software.readers
Article #56082Re: How to create a filter in MT-NewsWatcher
From: J. Moreno
Date: Wed, 29 Dec 1999 00:00
Date: Wed, 29 Dec 1999 00:00
45 lines
2304 bytes
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
Technical Details
Message-ID:
<1e3lacu.f6ptiu1m79s5kN%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!not-for-mailReferences:
<live-0AE78F.11574529121999@news.randori.com> <1e3kvrf.dzxegmu9y5p4N%planb@newsreaders.com> <live-23C066.12310329121999@news.randori.com> <greg-AA37D1.18154529121999@news.binary.net>Show Full Headers
Complete Article Headers
Message-ID: <1e3lacu.f6ptiu1m79s5kN%planb@newsreaders.com> Subject: Re: How to create a filter in MT-NewsWatcher Date: Wed, 29 Dec 1999 00:00:00 +0000 From: planb@newsreaders.com (J. Moreno) References: <live-0AE78F.11574529121999@news.randori.com> <1e3kvrf.dzxegmu9y5p4N%planb@newsreaders.com> <live-23C066.12310329121999@news.randori.com> <greg-AA37D1.18154529121999@news.binary.net> 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: 566318478 Mail-Copies-To: nobody X-ACLA-Charter: <http://www.deja.com/msgid.xp?MID=%3Cphenix-121119981748546229@roxboro0-023.dyn.interpath.net%3E&ST=&AH=1> X-Face: ]lUBtDImSD_`E"<*ZgyJUoCT\=CdRLFX4qCMLK[xy^L7v|uX|f8`cFDd*PaH8 N*x>d^h Organization: NetNews BOFH wannabe User-Agent: MacSOUP/2.4.2 Newsgroups: news.software.readers