🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Bev A. Kupf Sun, 05 Dec 2004 20:19
[slrn 0.9.8.1] how to score/kill based on User-Agent header?
#158914
Author: Bev A. Kupf
Date: Sun, 05 Dec 2004 20:19
22 lines
1880 bytes
I want to kill posts that are being gatewayed to a group that
I read by a web-forum/nntp gateway.  The user-agent line for
all these gatewayed posts is the only line in common, and it
reads:
User-Agent: newsSync (Mac Forum) 32789 Hamster-Pg/1.20

So I added the following entry to my News/Score file:

%BOS
%Score to kill posts gatewayed from mymac.ws
[*]
Score: =-9999
	User-Agent: newsSync (Mac Forum) 32789 Hamster-Pg\/1\.20
%EOS

But nothing with that header gets killed.  What have I
done incorrectly?

Thanks!
Beverly
-- 
Many a smale maketh a grate -- Geoffrey Chaucer
Re: [slrn 0.9.8.1] how to score/kill based on User-Agent header?
#158916
Author: Christopher Nehren
Date: Sun, 05 Dec 2004 20:55
23 lines
1795 bytes
On 2004-12-05, Bev A. Kupf scribbled these
curious markings:
> %BOS
> %Score to kill posts gatewayed from mymac.ws
> [*]
> Score: =-9999
> 	User-Agent: newsSync (Mac Forum) 32789 Hamster-Pg\/1\.20
> %EOS

It's possible that the User-Agent header is a member of the group of
headers which SLRN considers to be "expensive"; i.e., it would need to
download the entire article to have that header. Perhaps the Xref:
header or another similarly "non-expensive" header (which may be hidden
by default) is also different? Have you tried taking a unified diff
(diff -u on POSIX systems) of the same article in the two circumstances?

Best Regards,
Christopher Nehren
-- 
I abhor a system designed for the "user", if that word is a coded
pejorative meaning "stupid and unsophisticated".  -- Ken Thompson
If you ask the wrong questions, you get answers like "42" and "God".
Unix is user friendly. However, it isn't idiot friendly.
Re: [slrn 0.9.8.1] how to score/kill based on User-Agent header?
#158926
Author: Bev A. Kupf
Date: Mon, 06 Dec 2004 02:30
25 lines
2427 bytes
On 5 Dec 2004 20:55:17 GMT,
    Christopher Nehren (apeiron+usenet@coitusmentis.info) wrote:
> On 2004-12-05, Bev A. Kupf scribbled these
> curious markings:
>> %BOS
>> %Score to kill posts gatewayed from mymac.ws
>> [*]
>> Score: =-9999
>> 	User-Agent: newsSync (Mac Forum) 32789 Hamster-Pg\/1\.20
>> %EOS
>
> It's possible that the User-Agent header is a member of the group of
> headers which SLRN considers to be "expensive"; i.e., it would need to
> download the entire article to have that header. Perhaps the Xref:
> header or another similarly "non-expensive" header (which may be hidden
> by default) is also different? Have you tried taking a unified diff
> (diff -u on POSIX systems) of the same article in the two circumstances?

I ended up doing precisely that.  Scoring based on a wild-carded Message-ID 
header solved the problem.

Thanks,
Beverly
-- 
Many a smale maketh a grate -- Geoffrey Chaucer
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