Article View: news.software.readers
Article #135497Re: Dialog searching/filtering query.
From: Enrico C
Date: Wed, 15 Oct 2003 07:51
Date: Wed, 15 Oct 2003 07:51
64 lines
3351 bytes
3351 bytes
A certain John Fitzsimons, of news.software.readers, writes:
> On Tue, 14 Oct 2003 11:55:41 +0200, Enrico C wrote:
>
>> A certain John Fitzsimons, of news.software.readers, writes:
>
>>> Sometimes people forget to put Dialog or 40tude in headers. I would like to
>>> find all posts that have either in any header, OR body. Or, as I want to
>
>> snip
>
>>> Presumably a script could be written to do this. Could someone tell me the
>>> correct syntax please ?
>
>> I don't how to do that by a Dialog script, bu I *do* filter on
>> Subject *and* Body using Hamster before Dialog :)
>
>> Hamster is a local News/Mail Server:
>> http://tglsoft.de/misc/hamster_en.htm
>
> I use Hamster BUT as I only want this filtering to apply in Dialog and not
> Agent, or other newsreaders I am using, I wanted DIALOG to do the
> finding/filtering.
Well, I know it's not exactly what you were asking for.
But, if you only want to *apply* Hamster filtering in Dialog, just let
Hamster set scores, then have Dialog filter by Hamster's scores,
using the "X-Hamster-Info" header content. Just like a chain :)
Here it is step by step.
In the Hamster Scores file, set your rules, such as
| [news.software.readers]
| =+20 Subject: {\b(40tude|Dialog)\b}
| ?=+10 Body: {\b(40tude|Dialog)\b}
those will score when Dialog or are found in the Subject or in the
Body.
Hamster adds to the message an "X-Hamster-Info" header like this
| X-Hamster-Info: Score=10 ScoreLoad=0 ScoreSave=10 Received=20031015085045
where
ScoreLoad is the Subject score
ScoreSave is the Body score,
Score is their sum.
Now, let's move to Dialog's Scoring&Actions.
| [news.software.readers]
| !watch Header "ScoreLoad=20" ### watch messages with Dialog in Subject
| !watch Header "ScoreSave=10" ### watch messages with Dialog in Body
Or you can use other Dialog actions or scoring as you like, of course.
--
Enrico C
40tude Dialog Italy Cafe
http://www.lillathedog.net/dialog/
Technical Details
Message-ID:
<fmdt2wqmykt8.dlg@news.lillathedog.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!text1.nnrp.aus1!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.stueberl.de!fu-berlin.de!uni-berlin.de!213.203.156.37!not-for-mailReferences:
<1dzzhiidxdiym.dlg@aspects.org.au> <v6ym9ds9au2j$.dlg@news.lillathedog.net> <1tzmwiignl7e$.dlg@aspects.org.au>Show Full Headers
Complete Article Headers
Message-ID: <fmdt2wqmykt8.dlg@news.lillathedog.net>
Subject: Re: Dialog searching/filtering query.
Date: Wed, 15 Oct 2003 07:51:07 +0000
From: Enrico C <enrico.c@spamcop.net>
References: <1dzzhiidxdiym.dlg@aspects.org.au> <v6ym9ds9au2j$.dlg@news.lillathedog.net> <1tzmwiignl7e$.dlg@aspects.org.au>
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!text1.nnrp.aus1!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.stueberl.de!fu-berlin.de!uni-berlin.de!213.203.156.37!not-for-mail
Newsgroups: news.software.readers
Lines: 64
NNTP-Posting-Host: 213.203.156.37
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 1066204267 23837661 213.203.156.37 (16 [193523])
User-Agent: 40tude_Dialog/2.0.6.20it (359894c9.356.198) Hamster/2.0.2.1
X-Face: (a4+af0-6{;
Y.j"cd@Dd4>"^4m%3@{i9q``2C6u+X<MoECO,is%/20#=,W1GNl?cV{VRNHq
8R(oLuw0}7wz529riTkJr)e7|HQ;
,6#38E.0?RNK@lalS$`R~U*WCoKU{<%@.b<nB?9IYXdBEaw}.9
Q/KtoYUiDiwpS2#68j@$N!BF#?1RHH|'/)KG); oH:${ZjLjGZG{d.ziq3|kLym?i$'ND(D