🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
18 messages
18 total messages Started by Whiskers Tue, 17 Mar 2009 13:47
filter on body (was: which newsreader program can do this?)
#231563
Author: Whiskers
Date: Tue, 17 Mar 2009 13:47
38 lines
3456 bytes
[cross-post and Followup-To set to news.software.readers]
On 2009-03-17, Piepkuiken <nee@ooknee.kr> wrote:
> I want to make my newsreader automatically delete messages based on a 
> keyword found in the BODY of the message (not the subject line).
> such messages should either not be downloaded from the server or are 
> downloaded to my pc and then deleted. either is acceptable.
> for those who are going to reply "oh, program X can do this", I ask you: 
> HAVE YOU TRIED THIS PARTICULAR FUNCTION? if yes, which version of which 
> program?
> if you only think/assume/guess program X can do this but are unwilling to 
> try it first yourself, do not reply.
> i've tested many newsreaders (last year) including mesnews and forte agent 
> and still haven't found a newsreader that can do this.
> (windows xp)

You'll find more people over in new.software.readers so I've cross-posted 
there and set Followup-To accordingly.  I've also changed the Subject so 
that it gives a clue to the actual question.

The body will have to be fetched before anything can be done with it.  I 
don't know of any newsreader that can filter on the body, so I think you 
will have to use a seperate program or script to do it.  I suggest that 
using a local caching proxy news-server is the first step; that gives you 
a local news spool which you can manipulate using your OS's batch file or 
scripting tools even if the news-server itself has no such tools.  You 
will of course need to know how to not corrupt the news spool!

I believe work is being done to get the Leafnode local news-server program 
to operate with an email spam filter such as Spamassassin, which would be 
one possible approach to what you want.  I don't know how far that has 
progressed, if at all.  Leafnode runs on Unix or Linux systems.  For 
Windows systems, Hamster is a very useful proxy news-server - and has its 
own newsgroups where the experts hang out.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
filter on body (was: which newsreader program can do this?)
#231566
Author: Jeffâ–˛Relf
Date: Tue, 17 Mar 2009 14:26
7 lines
1438 bytes
My newsReader filters-out attribution lines ( kills them out-right )
and muffles >quoted lines, etc.
It can filter any part of a post, body or header.

Likely ― very likely ― Piepkuiken couldn't do that with my newsReader,
because he'd have to alter the code ( JeffRelf.F-M.FM/X.ZIP ) !
I suggest he write his own newsReader, as I did.
Re: filter on body
#231581
Author: Rom
Date: Tue, 17 Mar 2009 16:37
47 lines
2714 bytes
On Tue, 17 Mar 2009 13:47:44 +0000, Whiskers wrote:

> On 2009-03-17, Piepkuiken <nee@ooknee.kr> wrote:
>> I want to make my newsreader automatically delete messages based on a 
>> keyword found in the BODY of the message (not the subject line).
>> such messages should either not be downloaded from the server or are 
>> downloaded to my pc and then deleted. either is acceptable.

>> (windows xp)
> 
> The body will have to be fetched before anything can be done with it. 

Dialog <http://www.40tude.com/dialog/> can filter bodies.
Download 2.0.15.1 and update to at least 2.0.15.41 from here:
<http://dialog.datalist.org/downloads/download.html>

Bodies must be downloaded for group(s) for body filtering/scoring:
Group menu > Default/Selected group options > Retrieving
[x]Retrieve bodies for all new messages

Here's the script:
<http://www.40tude.com/dialog/wiki/index.php/ScriptXBody>
Settings > Scripting > > Enable scripting (if not already).
Copy script into Settings > Scripting > Scripting... > Event scripts
tab > OnBeforeSavingMessage, then Script > Compile, and Script >
Reload all compiled script in Dialog's main window.

The script adds an X-Body1: header with the words (without spaces) of
the non-quoted text from the message body so can score/filter.

Filtering/scoring/actions:
Settings > Scoring and actions > Scoring and action rules tab.

Some examples:
[news.software.readers]
!delete Header "Linux" "Microsoft"
!delete Header {^(X-Body1: ).*?linux.*?}
!ignore,markread Header "someword"
+10 Header "Vista" "Win7"
-10 Header "boring"

See these topics in Dialog's Help:
Regular Expressions <dialog.chm::/RegularExpressions.htm>,
Scoring/Actions Syntax <dialog.chm::/scoringactionsyntax.htm>

-- 
Rom
Re: filter on body (was: which newsreader program can do this?)
#231584
Author: Piepkuiken
Date: Tue, 17 Mar 2009 17:26
47 lines
3477 bytes
"Whiskers" <catwheezel@operamail.com> schreef in bericht 
news:slrngrvag0.bpi.catwheezel@ID-107770.user.individual.net...
> [cross-post and Followup-To set to news.software.readers]
> On 2009-03-17, Piepkuiken <nee@ooknee.kr> wrote:
>> I want to make my newsreader automatically delete messages based on a
>> keyword found in the BODY of the message (not the subject line).
>> such messages should either not be downloaded from the server or are
>> downloaded to my pc and then deleted. either is acceptable.
>> for those who are going to reply "oh, program X can do this", I ask you:
>> HAVE YOU TRIED THIS PARTICULAR FUNCTION? if yes, which version of which
>> program?
>> if you only think/assume/guess program X can do this but are unwilling to
>> try it first yourself, do not reply.
>> i've tested many newsreaders (last year) including mesnews and forte 
>> agent
>> and still haven't found a newsreader that can do this.
>> (windows xp)
>
> You'll find more people over in new.software.readers so I've cross-posted
> there and set Followup-To accordingly.  I've also changed the Subject so
> that it gives a clue to the actual question.
>
> The body will have to be fetched before anything can be done with it.  I
> don't know of any newsreader that can filter on the body, so I think you
> will have to use a seperate program or script to do it.  I suggest that
> using a local caching proxy news-server is the first step; that gives you
> a local news spool which you can manipulate using your OS's batch file or
> scripting tools even if the news-server itself has no such tools.  You
> will of course need to know how to not corrupt the news spool!
>
> I believe work is being done to get the Leafnode local news-server program
> to operate with an email spam filter such as Spamassassin, which would be
> one possible approach to what you want.  I don't know how far that has
> progressed, if at all.  Leafnode runs on Unix or Linux systems.  For
> Windows systems, Hamster is a very useful proxy news-server - and has its
> own newsgroups where the experts hang out.
>
> -- 
> -- ^^^^^^^^^^
> --  Whiskers
> -- ~~~~~~~~~~

i don't have access to that newsgroup. plus, what you're saying sounds like 
chinese to me. i am stupid! please translate into stupid english please.

Re: filter on body
#231585
Author: Rom
Date: Tue, 17 Mar 2009 17:44
16 lines
1440 bytes
On Wed, 18 Mar 2009 03:37:34 +1100, Rom wrote:

[...]

> !delete Header {^(X-Body1: ).*?linux.*?}

A better example body filter rule would be:

!delete Header {^(X-Body[0-9]+?: ).*?keyword.*?}

as it allows for X-Body1, X-Body2, X-Body3, etc. headers of longer
message bodies Including X-Body in the Header filter rule also
excludes other headers.

-- 
Rom
Re: filter on body
#231594
Author: Whiskers
Date: Tue, 17 Mar 2009 20:56
20 lines
1892 bytes
On 2009-03-17, Rom <-@-.invalid> wrote:
> On Tue, 17 Mar 2009 13:47:44 +0000, Whiskers wrote:
>> On 2009-03-17, Piepkuiken <nee@ooknee.kr> wrote:

[...]

> The script adds an X-Body1: header with the words (without spaces) of
> the non-quoted text from the message body so can score/filter.
>
> Filtering/scoring/actions:
> Settings > Scoring and actions > Scoring and action rules tab.

[...]

A neat trick  :))

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: filter on body
#231599
Author: Karl Kleinpaste
Date: Tue, 17 Mar 2009 21:53
28 lines
2509 bytes
Piepkuiken <nee@ooknee.kr> wrote:
>> I want to make my newsreader automatically delete messages based on a 
>> keyword found in the BODY of the message (not the subject line).

Whiskers <catwheezel@operamail.com> writes:
> The body will have to be fetched before anything can be done with it.

Not precisely true.

If your news server is INN, then automatic keyword generation can be
enabled in it, if you can convince the newsadmin at that host to do so.
Once that is done, articles' essential body content can be scored/killed
via the Keywords: header.

Since INN 2.3 or so, the relevant keyword-grinding bits have been
available.  Basically, add "Keywords:full" to overview.fmt, and set a
few things in inn.conf, e.g.:

keywords:               true
keyartlimit:            100000
keylimit:               512
keymaxwords:            250

I wrote this facility for INN back in 1996 or so.  It has served me well
for over a decade, and I keep these bits enabled in my own INN.  I find
it invaluable and would not use an NNTP server without it.

--karl
Re: filter on body
#231601
Author: Rom
Date: Tue, 17 Mar 2009 23:12
41 lines
2752 bytes
On Tue, 17 Mar 2009 18:26:11 +0100, Piepkuiken wrote:

> i don't have access to that newsgroup.

I'm somewhat surprised that you don't or your news server doesn't
carry news.software.readers, as there's a couple of posters using the
same news server (news4us.nl) as you and have posted to
news.software.readers in the last month or so.

As you're using Outlook Express go to Tools > Options > General tab
to see if you have this setting checked "[x] Notify me if there are
any new newsgroups", so OE notifies you of new newsgroups added when
you connect to the server. Also go to Tools > Newsgroups and search
(again) for the news.software.readers group.

There's (free) news servers such as <http://motzarella.org/> and more
here <http://www.dmoz.org/Computers/Usenet/Public_News_Servers/> you
could use that carry news.software.readers.

I posted a couple of messages[*] in news.software.readers about the
40tude Dialog newsreader and how to do what you're after with Dialog.
news.software.readers is also a group to get help with Dialog. 

alt.comp.software.newsreaders is not carried by my news server
(news.individual.net), and I don't normally post to groups I don't
read. I've crossposted this to both groups.

> i am stupid! please translate into stupid english please.

If you can't access news.software.readers via your news server try
another news server, or go here <http://al.howardknight.net/> and look
up these Message-IDs (do not check the Google Search Only box):

[*]
<tt5ryla2e55s$.1w5w7vj3a3mhp.dlg@40tude.net>
<a0up0haxczuo.vamzl2lmuebu$.dlg@40tude.net>


X'Posted to: news.software.readers,alt.comp.software.newsreaders
-- 
Rom
Re: filter on body (was: which newsreader program can do this?)
#231610
Author: Mike Dee
Date: Wed, 18 Mar 2009 04:24
31 lines
2636 bytes
Piepkuiken wrote:

> "Whiskers" <catwheezel@operamail.com> wrote:
>> Piepkuiken <nee@ooknee.kr> wrote:
>>
>>> I want to make my newsreader automatically delete messages based on a
>>> keyword found in the BODY of the message
[...]
>>
>> You'll find more people over in new.software.readers so I've
                               ^^^^^^^^^^^^^
I wonder if that had anything to do with his inability to access NSR, if
he didn't compare it with the actual posting headers.

>> cross-posted there and set Followup-To accordingly. I've also changed
>> the Subject so that it gives a clue to the actual question.
>>
>> The body will have to be fetched before anything can be done with it.
[...]
> 
> i don't have access to that newsgroup. plus, what you're saying sounds
> like chinese to me. i am stupid! please translate into stupid english
> please.

Your post managed to find its way to *news.software.readers* (and because
it did, so could you). Wonder if you'll get to see it and/or some of
responses made so far?

-- 
dee
Re: filter on body (was: which newsreader program can do this?)
#231611
Author: Whiskers
Date: Wed, 18 Mar 2009 10:37
24 lines
2211 bytes
On 2009-03-18, Mike Dee <mikedee@emteedee.invalid> wrote:
> Piepkuiken wrote:
>
>> "Whiskers" <catwheezel@operamail.com> wrote:
>>> Piepkuiken <nee@ooknee.kr> wrote:
>>>
>>>> I want to make my newsreader automatically delete messages based on a
>>>> keyword found in the BODY of the message
> [...]
>>>
>>> You'll find more people over in new.software.readers so I've
>                                ^^^^^^^^^^^^^
> I wonder if that had anything to do with his inability to access NSR, if
> he didn't compare it with the actual posting headers.

Aaargh.  Gotta love those typos.  Is there an editor that will turn what I 
write into what I mean?

[...]

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: filter on body
#231612
Author: Mike Yetto
Date: Wed, 18 Mar 2009 11:56
26 lines
2686 bytes
Bada bing Whiskers <catwheezel@operamail.com> bada bang:
> On 2009-03-18, Mike Dee <mikedee@emteedee.invalid> wrote:
>> Piepkuiken wrote:
>>
>>> "Whiskers" <catwheezel@operamail.com> wrote:
>>>> Piepkuiken <nee@ooknee.kr> wrote:
>>>>
>>>>> I want to make my newsreader automatically delete messages based on a
>>>>> keyword found in the BODY of the message
>> [...]
>>>>
>>>> You'll find more people over in new.software.readers so I've
>>                                ^^^^^^^^^^^^^
>> I wonder if that had anything to do with his inability to access NSR, if
>> he didn't compare it with the actual posting headers.
>
> Aaargh.  Gotta love those typos.  Is there an editor that will turn what I 
> write into what I mean?
>

/etc/init.d/psychicd start

Mike "unless it knew to start itself" Yetto
-- 
Pluralitas non est ponenda sine necessitas.
 - William of Ockham
Re: filter on body
#231615
Author: Mike Dee
Date: Wed, 18 Mar 2009 15:19
23 lines
2380 bytes
On Wed, 18 Mar 2009 10:37:04 +0000, Whiskers wrote:

> On 2009-03-18, Mike Dee <mikedee@emteedee.invalid> wrote:
[...]
>>> "Whiskers" <catwheezel@operamail.com> wrote:

>>>> You'll find more people over in new.software.readers so I've
>>                                ^^^^^^^^^^^^^
>> I wonder if that had anything to do with his inability to access NSR, if
>> he didn't compare it with the actual posting headers.
> 
> Aaargh.  Gotta love those typos.  Is there an editor that will turn what I
> write into what I mean?

Heh, I wish :-)

Still, if the OP had checked the headers before deciding he couldn't
post here... - I wonder if he's scratching his head trying to figure out
where his reply post went to ;-)

-- 
dee
Re: filter on body - UPDATE FROM OP
#231642
Author: Piepkuiken
Date: Thu, 19 Mar 2009 18:48
39 lines
2691 bytes
"Mike Dee" <mikedee@emteedee.invalid> schreef in bericht 
news:pan.2009.03.18.15.19.49.454441@emteedee.invalid...
> On Wed, 18 Mar 2009 10:37:04 +0000, Whiskers wrote:
>
>> On 2009-03-18, Mike Dee <mikedee@emteedee.invalid> wrote:
> [...]
>>>> "Whiskers" <catwheezel@operamail.com> wrote:
>
>>>>> You'll find more people over in new.software.readers so I've
>>>                                ^^^^^^^^^^^^^
>>> I wonder if that had anything to do with his inability to access NSR, if
>>> he didn't compare it with the actual posting headers.
>>
>> Aaargh.  Gotta love those typos.  Is there an editor that will turn what 
>> I
>> write into what I mean?
>
> Heh, I wish :-)
>
> Still, if the OP had checked the headers before deciding he couldn't
> post here... - I wonder if he's scratching his head trying to figure out
> where his reply post went to ;-)
>
> -- 
> dee

--

Well, i managed to get here in the end so i'm probably not as stupid as i 
thought i was.
I have read all comments and wil start with the simplest solution, which is 
to download & try out the Gravity program as suggested by some dude. Those 
script thingies suggestions are beyond my intellectual capacity, but hey, i 
might learn how to work with them in the long run if necessary.
If you don't hear from me again, Gravity has done what i want it to do.
Thx to all!

Re: filter on body - UPDATE FROM OP
#231643
Author: Whiskers
Date: Thu, 19 Mar 2009 19:34
22 lines
2086 bytes
On 2009-03-19, Piepkuiken <nee@ooknee.kr> wrote:

[...]

> Well, i managed to get here in the end so i'm probably not as stupid as i 
> thought i was.

Don't understimate yourself!  (Most people seem to have the opposite 
tendency).

[...]

> If you don't hear from me again, Gravity has done what i want it to do.
> Thx to all!

I think people would appreciate positive confirmation of success; good for 
morale, you see  :))

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: filter on body - UPDATE FROM OP
#231650
Author: Mike Yetto
Date: Thu, 19 Mar 2009 22:50
26 lines
2619 bytes
Bada bing Whiskers <catwheezel@operamail.com> bada bang:
> On 2009-03-19, Piepkuiken <nee@ooknee.kr> wrote:
>
> [...]
>
>> Well, i managed to get here in the end so i'm probably not as stupid as i 
>> thought i was.
>
> Don't understimate yourself!  (Most people seem to have the opposite 
> tendency).
>
> [...]
>
>> If you don't hear from me again, Gravity has done what i want it to do.
>> Thx to all!
>
> I think people would appreciate positive confirmation of success; good for 
> morale, you see  :))
>

Don't forget the grant application.

Mike "Usenet needs a bailout, too" Yetto
-- 
Pluralitas non est ponenda sine necessitas.
 - William of Ockham
Re: filter on body - UPDATE FROM OP
#231655
Author: Mike Dee
Date: Thu, 19 Mar 2009 23:38
22 lines
2353 bytes
"Piepkuiken" <nee@ooknee.kr> wrote:

> Well, i managed to get here in the end so i'm probably not as
> stupid as i thought i was.

Obviously not. Good to see you get here without being hand-held :-)

> I have read all comments and wil start with the simplest solution,
> which is to download & try out the Gravity program as suggested by
> some dude. Those script thingies suggestions are beyond my
> intellectual capacity, but hey, i might learn how to work with
> them in the long run if necessary. If you don't hear from me
> again, Gravity has done what i want it to do. Thx to all!

Thanks for the feedback. If you do ever need help with those script 
thingies, this is a good NG for getting some ideas on that subject, 
too.

Cheers

-- 
dee
Re: filter on body - UPDATE FROM OP
#231663
Author: Whiskers
Date: Fri, 20 Mar 2009 09:09
34 lines
2585 bytes
On 2009-03-19, Mike Yetto <myetto1@nycap.invalid> wrote:
> Bada bing Whiskers <catwheezel@operamail.com> bada bang:
>> On 2009-03-19, Piepkuiken <nee@ooknee.kr> wrote:
>>
>> [...]
>>
>>> Well, i managed to get here in the end so i'm probably not as stupid as i 
>>> thought i was.
>>
>> Don't understimate yourself!  (Most people seem to have the opposite 
>> tendency).
>>
>> [...]
>>
>>> If you don't hear from me again, Gravity has done what i want it to do.
>>> Thx to all!
>>
>> I think people would appreciate positive confirmation of success; good for 
>> morale, you see  :))
>>
>
> Don't forget the grant application.

It just about covers the membership fees, which are unaffordable 
otherwise.

> Mike "Usenet needs a bailout, too" Yetto

But we don't want government control!

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: filter on body - UPDATE FROM OP
#231666
Author: Mike Dee
Date: Fri, 20 Mar 2009 12:21
18 lines
2322 bytes
On Fri, 20 Mar 2009 09:09:45 +0000, Whiskers wrote:

> On 2009-03-19, Mike Yetto <myetto1@nycap.invalid> wrote:

>> Don't forget the grant application.
> 
> It just about covers the membership fees, which are unaffordable
> otherwise.
> 
>> Mike "Usenet needs a bailout, too" Yetto
> 
> But we don't want government control!

I just want the bonuses, then I can quit sacking people and retire.

-- 
dee
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