🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #233141

Re: Dialog: Filtering On Headers?

#233141
From: Rom
Date: Thu, 14 May 2009 05:18
42 lines
1918 bytes
On Wed, 13 May 2009 22:49:35 -0500, LB@nowhere.com wrote:

> How does one filter on a specific header?  For instance, the nntp field
> of a troll?

Dialog filters twice - when retrieving headers and retrieving bodies.
The following (virtual) headers can be used for filtering when
retrieving headers:

From
Subject
Date
Message-ID
References
Bytes
Lines
XRef
XPost 
Age
Score

All (other) headers are available for filtering when retrieving
bodies. IMO, retrieving bodies with headers for group(s) is preferable
and works better than just retrieving headers then selected bodies.

Some example filter rules on non-overview headers:

[*]
!delete Header "NNTP-Posting-Host: 123.456.78.90"

[* -name.of.group]
!ignore,markread Header {^(Followup-To: ).*?(sfnet\..*)+?}

[name.of.group]
-1000 Header {^(Path: ).*(689056ff!not-for-mail)$}


See about half way down in the "Scoring/Actions Syntax" page of
Dialog's Help <dialog.chm::/scoringactionsyntax.htm> for more info.

-- 
Rom
Technical Details
Message-ID: <ejyh0e98vias$.186tac1qvdbcm.dlg@40tude.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.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <c25n05921vc2nljq013b2f6u6tscg3spf7@4ax.com>

Show Full Headers
Complete Article Headers
Message-ID: <ejyh0e98vias$.186tac1qvdbcm.dlg@40tude.net>
Subject: Re: Dialog: Filtering On Headers?
Date: Thu, 14 May 2009 15:18:32 +1000
From: Rom <-@-.invalid>
References: <c25n05921vc2nljq013b2f6u6tscg3spf7@4ax.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!border1.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 42
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net wS9FrhPXM1JsjERvMxNsewDcTR8FyPAYC/URm/w8iiOTsU2hAN
Cancel-Lock: sha1:gaerCVnM4qc4i6kBz+poVdk8/Bs=
User-Agent: 40tude_Dialog/2.0.15.41
Archive: no
X-No-Archive: yes