πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
13 messages
13 total messages Started by Indi Wed, 25 Aug 2010 17:33
[slrn] block xposts to a particular group?
#242346
Author: Indi
Date: Wed, 25 Aug 2010 17:33
14 lines
1280 bytes
I wish to block all the posters who crosspost to a particular 
group (one to which I am not subscribed). 
I tried this in my scorefile (actual name of group redacted):

[*]
Score: -9999
Newsgroups: alt.group.of.wackos

It achieves nothing.
Is there a way to do this?

-- 
Caveat utilitor,
indi
Re: [slrn] block xposts to a particular group?
#242347
Author: Whiskers
Date: Wed, 25 Aug 2010 18:10
27 lines
2253 bytes
On 2010-08-25, Indi <indi@satcidananda.16x108.merseine.nu> wrote:
> I wish to block all the posters who crosspost to a particular 
> group (one to which I am not subscribed). 
> I tried this in my scorefile (actual name of group redacted):
>
> [*]
> Score: -9999
> Newsgroups: alt.group.of.wackos
>
> It achieves nothing.
> Is there a way to do this?

You need to 'escape' the . with a \ - ie

    alt\.group\.of\.wackos

Newsgroups is an 'expensive' header to score on - it isn't included in the 
crossover file from the server, so the newsreader has to fetch all the 
headers or complete articles in order to filter on it.

Try using the Xref header instead, which usually is in the crossover file. 
That usually works more quickly.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] block xposts to a particular group?
#242352
Author: Ted S.
Date: Wed, 25 Aug 2010 19:02
32 lines
2485 bytes
On Wed, 25 Aug 2010 19:10:31 +0100, Whiskers wrote:

>> [*]
>> Score: -9999
>> Newsgroups: alt.group.of.wackos
>>
>> It achieves nothing.
>> Is there a way to do this?
> 
> You need to 'escape' the . with a \ - ie
> 
>     alt\.group\.of\.wackos

Technically, you don't.  The '.' in regexes will match *any* character,
incluing a '.', so the OP's example should work on XOVER headers.

Of course, one has to be careful of what one is doing: if you make the
search too short and use an unescaped '.', you might catch things you
don't intend to.  I'm reminded of when I was getting lots of spam with
things like "F*R*E*E" in the Subject: header, and tried the regex

f.r.e.e

to kill such message.  I got one kill notice that that regex had been
responsible for doing the killing, but didn't see anything like
"f*r*e*e" in the Subject, until I looked more closely and saw that the
subject had the phrase "for every".

-- 
Ted S.
fedya at hughes dot net
Now blogging at http://justacineast.blogspot.com
--
#242359
Author: JeffRelf.F-M.FM
Date: Wed, 25 Aug 2010 19:15
5 lines
1149 bytes
ο»Ώ<PRE>
Why wouldn't β€œ alt.wackos ” match β€œ alt.wackos ” ?
Doesn't the β€œ . ” mean any character ?

It works in Visual Studio's β€œfindΒ· function, RegEx mode.
Re: [slrn] block xposts to a particular group?
#242355
Author: Indi
Date: Wed, 25 Aug 2010 19:24
31 lines
2027 bytes
On 2010-08-25, Whiskers <catwheezel@operamail.com> wrote:
> On 2010-08-25, Indi <indi@satcidananda.16x108.merseine.nu> wrote:
>> I wish to block all the posters who crosspost to a particular 
>> group (one to which I am not subscribed). 
>> I tried this in my scorefile (actual name of group redacted):
>>
>> [*]
>> Score: -9999
>> Newsgroups: alt.group.of.wackos
>>
>> It achieves nothing.
>> Is there a way to do this?
>
> You need to 'escape' the . with a \ - ie
>
>     alt\.group\.of\.wackos
>
> Newsgroups is an 'expensive' header to score on - it isn't included in the 
> crossover file from the server, so the newsreader has to fetch all the 
> headers or complete articles in order to filter on it.
>
> Try using the Xref header instead, which usually is in the crossover file. 
> That usually works more quickly.
>

Thanks for the suggestion, but doesn't work for me either.
Tried with and without escaping the ".", on Xref and Newsgroups.

-- 
Caveat utilitor,
indi
Re: [slrn] block xposts to a particular group?
#242397
Author: Whiskers
Date: Thu, 26 Aug 2010 21:16
30 lines
2515 bytes
On 2010-08-25, Ted S. <fedya@hughes.spam> wrote:
> On Wed, 25 Aug 2010 19:10:31 +0100, Whiskers wrote:
>
>>> [*]
>>> Score: -9999
>>> Newsgroups: alt.group.of.wackos
>>>
>>> It achieves nothing.
>>> Is there a way to do this?
>> 
>> You need to 'escape' the . with a \ - ie
>> 
>>     alt\.group\.of\.wackos
>
> Technically, you don't.  The '.' in regexes will match *any* character,
> incluing a '.', so the OP's example should work on XOVER headers.

[...]

Any scorefile entry auto-generated by slrn will escape a . that forms part 
of the string being tested for.  This is what is done in the specimen file 
score.txt too.  The . is indeed used as a wild-card when we want to test 
for 'anything at all' - but that isn't appropriate when testing for a 
specific string of characters one of which is a . so we escape the . to 
force slrn to test specifically for that character at that location.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] block xposts to a particular group?
#242398
Author: Whiskers
Date: Thu, 26 Aug 2010 21:24
40 lines
2761 bytes
On 2010-08-25, Indi <indi@satcidananda.16x108.merseine.nu> wrote:
> On 2010-08-25, Whiskers <catwheezel@operamail.com> wrote:
>> On 2010-08-25, Indi <indi@satcidananda.16x108.merseine.nu> wrote:
>>> I wish to block all the posters who crosspost to a particular 
>>> group (one to which I am not subscribed). 
>>> I tried this in my scorefile (actual name of group redacted):
>>>
>>> [*]
>>> Score: -9999
>>> Newsgroups: alt.group.of.wackos
>>>
>>> It achieves nothing.
>>> Is there a way to do this?
>>
>> You need to 'escape' the . with a \ - ie
>>
>>     alt\.group\.of\.wackos
>>
>> Newsgroups is an 'expensive' header to score on - it isn't included in the 
>> crossover file from the server, so the newsreader has to fetch all the 
>> headers or complete articles in order to filter on it.
>>
>> Try using the Xref header instead, which usually is in the crossover file. 
>> That usually works more quickly.
>>
>
> Thanks for the suggestion, but doesn't work for me either.
> Tried with and without escaping the ".", on Xref and Newsgroups.

Does the 'set scorefile' line in your ~/.slrnrc identify the correct 
scorefile?  I have

#v+
set scorefile "News/Score"
#v-

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] block xposts to a particular group?
#242409
Author: Indi
Date: Fri, 27 Aug 2010 00:31
28 lines
2023 bytes
On 2010-08-26, Whiskers <catwheezel@operamail.com> wrote:
> On 2010-08-25, Indi <indi@satcidananda.16x108.merseine.nu> wrote:
>>
>> Thanks for the suggestion, but doesn't work for me either.
>> Tried with and without escaping the ".", on Xref and Newsgroups.
>
> Does the 'set scorefile' line in your ~/.slrnrc identify the correct 
> scorefile?  I have
>
> #v+
> set scorefile "News/Score"
> #v-
>

Yes, I checked that first and have double-checked since. 
:)
It's not terribly important anymore, I went ahead and 
added about eight bozos individually. But it would be 
nice if one could simply block xposts to a particular 
group. It may just be the version of slrn I'm using, 
it's not -- hey, I just realized when I tried to do 
that I was in OS X. I'l have to try it in FBSD and 
see if it works. Back in a minute...

-- 
Caveat utilitor,
indi
Re: [slrn] block xposts to a particular group?
#242412
Author: Indi
Date: Fri, 27 Aug 2010 00:41
44 lines
2443 bytes
On 2010-08-27, Indi <indi@satcidananda.16x108.merseine.nu> wrote:
> On 2010-08-26, Whiskers <catwheezel@operamail.com> wrote:
>> On 2010-08-25, Indi <indi@satcidananda.16x108.merseine.nu> wrote:
>>>
>>> Thanks for the suggestion, but doesn't work for me either.
>>> Tried with and without escaping the ".", on Xref and Newsgroups.
>>
>> Does the 'set scorefile' line in your ~/.slrnrc identify the correct 
>> scorefile?  I have
>>
>> #v+
>> set scorefile "News/Score"
>> #v-
>>
>
> Yes, I checked that first and have double-checked since. 
>:)
> It's not terribly important anymore, I went ahead and 
> added about eight bozos individually. But it would be 
> nice if one could simply block xposts to a particular 
> group. It may just be the version of slrn I'm using, 
> it's not -- hey, I just realized when I tried to do 
> that I was in OS X. I'l have to try it in FBSD and 
> see if it works. Back in a minute...
>

Yes, happily I can report it *does* work in FreeBSD.
Succesfully killed all posts to the group in question 
adding exactly what you suggested, i.e.:

[*]
Score: -9999
Xref: alt\.group\.of\.wackos

Much better now, thanks Whiskers.
:)
OS X is weird sometimes. I did compile both s-lang2 and 
slrn from source, but some things just don't behave quite 
as well as in FreeBSD or Linux. 

-- 
Caveat utilitor,
indi
Re: [slrn] block xposts to a particular group?
#242419
Author: Indi
Date: Fri, 27 Aug 2010 16:24
15 lines
1647 bytes
On 2010-08-27, Indi <indi@satcidananda.16x108.merseine.nu> wrote:
>
> OS X is weird sometimes. I did compile both s-lang2 and 
> slrn from source, but some things just don't behave quite 
> as well as in FreeBSD or Linux. 
>

Well *now* it works in OS X, since I copied the scorefile 
directly from the one in FreeBSD. I cannot see where I made 
any typo, but clearly I must have. Can't blame vim, it works 
very reliably... 

-- 
Caveat utilitor,
indi
Re: [slrn] block xposts to a particular group?
#242427
Author: Whiskers
Date: Fri, 27 Aug 2010 19:58
20 lines
2300 bytes
On 2010-08-27, Indi <indi@satcidananda.16x108.merseine.nu> wrote:
> On 2010-08-27, Indi <indi@satcidananda.16x108.merseine.nu> wrote:
>>
>> OS X is weird sometimes. I did compile both s-lang2 and 
>> slrn from source, but some things just don't behave quite 
>> as well as in FreeBSD or Linux. 
>>
>
> Well *now* it works in OS X, since I copied the scorefile 
> directly from the one in FreeBSD. I cannot see where I made 
> any typo, but clearly I must have. Can't blame vim, it works 
> very reliably... 

Could be one of those obscure differences in file format between different 
OSs - eg Microsoft end lines with CRLF whereas *nix uses LF only.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] block xposts to a particular group?
#242429
Author: Indi
Date: Fri, 27 Aug 2010 20:54
27 lines
2189 bytes
On 2010-08-27, Whiskers <catwheezel@operamail.com> wrote:
> On 2010-08-27, Indi <indi@satcidananda.16x108.merseine.nu> wrote:
>> On 2010-08-27, Indi <indi@satcidananda.16x108.merseine.nu> wrote:
>>>
>>> OS X is weird sometimes. I did compile both s-lang2 and 
>>> slrn from source, but some things just don't behave quite 
>>> as well as in FreeBSD or Linux. 
>>>
>>
>> Well *now* it works in OS X, since I copied the scorefile 
>> directly from the one in FreeBSD. I cannot see where I made 
>> any typo, but clearly I must have. Can't blame vim, it works 
>> very reliably... 
>
> Could be one of those obscure differences in file format between different 
> OSs - eg Microsoft end lines with CRLF whereas *nix uses LF only.
>

Hadn't though of that...  
I'm pretty sure vim's behavior is standard, but at some point I may have 
opened the file in Text Wrangler, back before I quit using it altogether.
That could well have done just what you suggest. 

-- 
Caveat utilitor,
indi
Re: [slrn] block xposts to a particular group?
#242431
Author: Whiskers
Date: Sat, 28 Aug 2010 13:21
32 lines
3046 bytes
On 2010-08-27, Indi <indi@satcidananda.16x108.merseine.nu> wrote:
> On 2010-08-27, Whiskers <catwheezel@operamail.com> wrote:
>> On 2010-08-27, Indi <indi@satcidananda.16x108.merseine.nu> wrote:
>>> On 2010-08-27, Indi <indi@satcidananda.16x108.merseine.nu> wrote:
>>>>
>>>> OS X is weird sometimes. I did compile both s-lang2 and 
>>>> slrn from source, but some things just don't behave quite 
>>>> as well as in FreeBSD or Linux. 
>>>>
>>>
>>> Well *now* it works in OS X, since I copied the scorefile 
>>> directly from the one in FreeBSD. I cannot see where I made 
>>> any typo, but clearly I must have. Can't blame vim, it works 
>>> very reliably... 
>>
>> Could be one of those obscure differences in file format between different 
>> OSs - eg Microsoft end lines with CRLF whereas *nix uses LF only.
>>
>
> Hadn't though of that...  
> I'm pretty sure vim's behavior is standard, but at some point I may have 
> opened the file in Text Wrangler, back before I quit using it altogether.
> That could well have done just what you suggest. 

Vi, or any editor, should default to whatever the normal format is on the 
system on which it is running - but there should also be a user setting to 
change that if necessary.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
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