🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #218549

Re: Nfilter - faulty crosspost filter

#218549
From: VanguardLH
Date: Sat, 05 Apr 2008 02:43
62 lines
3777 bytes
"Mike Easter" <MikeE@ster.invalid> wrote in message 
news:M46dnc0U25L4rWzanZ2dnUVZ_jmdnZ2d@earthlink.com...
> Mike Easter wrote:
>> My nfilter dat sez:
>>
>> * drop Message-ID:*googlegroups*
>> * drop Xref:*: *: *:
>>
>> ... where the Xref is supposed to filter out the crossposts because
>> the Xref line contains a colon for the xref number for every
>> newsgroup the item is crossposted to and the xref appears in the
>> overview.
>
>> Nfilter sez the Xref line should work for the crossposts in the faq
>> http://www.nfilter.org/faq.html#3.6
>>
>> The exact upper/lower case syntax is Xref: and/but the nfilter faq
>> seems to sometimes ignore uppercase and sometimes not.  I have 
>> regular
>> expressions enabled.
>
> Searching showed me a suggestion for some periods for a regex, so I 
> put
> some/a period/s in there and it seems to work:
>
> * drop Message-ID:*googlegroups*
> * drop xref:*:.*:
>
> ... that one is configured to drop anything crossposted to two or 
> more
> groups.


Unless you have the regex mode enabled, use what you had but get rid 
of the spaces.  There are no spaces in the Xref header, so you would 
use:

    * drop Xref:*:*:*:

That checks if there were 3, or more, newsgroups listed.  The URL you 
mentioned also does *not* show spaces after the colon characters.  The 
Xref shows a list of newsgroups that are separate by spaces but the 
index number for the post in that group is immediately after the colon 
characters, as in "<groupname>:<idnum>".  So there are no ": " (colon 
space) sequences in the Xref header.

Although the example might show a trailing asterisk, it is not 
necessary to matching on the rest of the line (to wildcard it out). 
It is a substring search so all you are really doing is counting the 
number of colons in the header (not colon+space sequences which aren't 
there, anyway).

You could use either of the following to drop posts that were 
cross-posted to more than 3 groups:

* drop Xref:*:*:*:
* drop Newsgroups:*,*,*,

The trailing delimiter would only exist if there was a 4th entry in 
the line (and possibly more after that).

Technical Details
Message-ID: <M8mdnZlT7KvOemvanZ2dnUVZ_tajnZ2d@comcast.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail
References: <H9KdnYX9wZv9umzanZ2dnUVZ_jednZ2d@earthlink.com> <M46dnc0U25L4rWzanZ2dnUVZ_jmdnZ2d@earthlink.com>

Show Full Headers
Complete Article Headers
Message-ID: <M8mdnZlT7KvOemvanZ2dnUVZ_tajnZ2d@comcast.com>
Subject: Re: Nfilter - faulty crosspost filter
Date: Fri, 4 Apr 2008 21:43:39 -0500
From: "VanguardLH" <V@nguard.LH>
References: <H9KdnYX9wZv9umzanZ2dnUVZ_jednZ2d@earthlink.com> <M46dnc0U25L4rWzanZ2dnUVZ_jmdnZ2d@earthlink.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 04 Apr 2008 21:43:31 -0500
Newsgroups: news.software.readers
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
 reply-type=original
Content-Transfer-Encoding: 7bit
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
Lines: 62
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 69.180.133.182
X-Trace: sv3-qLDcNypbOPRo8dn1uWORxLW7Ewou+iMyHsrTXRv3aSiK8HXT3mfoosBmKufisHzHorYtyMM/o+4RPf6!wi+D7p6sEiSEkXfWJKnnZcTlq4/CEwG+j38sVVHk3xvX2KKNfAeuAyB18vPifBel2k4Sftocz2/t!0MaZedFPlgSGSYefNrMYfM0EHbzL/WI=
X-Complaints-To: abuse@comcast.net
X-DMCA-Complaints-To: dmca@comcast.net
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint
 properly
X-Postfilter: 1.3.38