🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Whiskers Tue, 04 Oct 2011 11:32
Re: [pan] how to use additional X-headers for scoring?
#247318
Author: Whiskers
Date: Tue, 04 Oct 2011 11:32
96 lines
4668 bytes
[set Followup-To: news.software.readers]
On 2011-10-03, FritzS <fritzs@pan-0.135.noreply.invalid> wrote:
> Hello,
> I run pan 0.135 under Mac OS X Lion and MacPorts (GIT 30dc37b master; 
> x86_64-apple-darwin11.1.0)
>
> how I could use additional X-headers such as 
> X-Authenticated-User:  
> or
> NNTP-Posting-Host: 
> for scoring?
>
> In Score this don't work:
> %BOS
> %Score created by Pan on Wed Sep 28 06:26:18 2011
> [~xxxxxx]
> Score:: -600
> X-Authenticated-User: ^$$m$x1dqu63w4useridf$
> %EOS
>
> the string $$m$x1dqu63w4useridf  is the user ID on the
> NNTP server and posted in the header
>
> The original line in header:
> X-Authenticated-User: $$m$x1dqu63w4useridf
>
> This works well
> %BOS
> %Score created by Pan on Mon Oct  3 10:21:15 2011
> [~xxxxxx]
> Score:: =-606
> From: ^name@domain\.com \(Name Equall\)$
> %EOS
>
> [~xxxxxx] (is not xxxxxx)  works  as Joker for all groups 
> [*] don't work
>
> .....
> How can I change, expand the selection at
> / Article / add new rating .. / From the article ....
>
> In German
> /Artikel/Neue Wertung hinzufügen ../Und die Artikel ....
> .....
> The next X-Header I want to use for scoring is the
> NNTP-Posting-Host:
> and with a Joker for a part of the hostname
> looks like this
> NNTP-Posting-Host: *.hostname.domain.com
> * is the ip from the posting host and a Joker is needed

Usenet/NNTP Headers come in two sorts: the 'overview' which you get when 
you fetch 'headers only'; and all the others.  Scoring or filtering on 
headers that are not in the 'overview' requires that the entire article 
be downloaded, and is known as 'expensive scoring' because of the extra 
bandwidth and storage used.  Some usenet clients are unable to use 
'expensive' scoring or filtering; others lack a convenient way for doing 
it but can be persuaded to by careful editing of a configuration file.  I 
think your version of Pan may be in the latter category.

You may need to 'escape' some characters in the headers you want to score 
on - for example > < $ . have to be 'escaped' in my newsreader's scorefile 
(by putting a \ in front).  You probably don't need to include any sort of 
wildcard [joker] in your NNTP-Posting-Host filter.

You can discover the 'overview' headers provided by your news-server by 
using telnet to connect (and log in if required).  This list is typical:

    ]$ telnet tavy nntp
    Trying 127.0.0.1...
    Connected to tavy.mobile.private (127.0.0.1).
    Escape character is '^]'.
    200 Leafnode NNTP daemon, version 2.0.0.alpha20070602a at ID107770.user.individual.net 
    LIST OVERVIEW.FMT
    215 information follows
    Subject:
    From:
    Date:
    Message-ID:
    References:
    Bytes:
    Lines:
    Xref:full
    .
    QUIT
    205 Always happy to serve!
    Connection closed by foreign host.
    ]$ 

You'll find more people over in news.software.readers, so I've 
cross-posted this reply and set the Followup-To accordingly.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [pan] how to use additional X-headers for scoring?
#247319
Author: Shmuel Metz
Date: Tue, 04 Oct 2011 16:10
25 lines
2729 bytes
In <slrnj8lrn4.d4v.catwheezel@ID-107770.user.individual.net>, on
10/04/2011
   at 12:32 PM, Whiskers <catwheezel@operamail.com> said:

>Scoring or filtering on headers that are not in the 'overview' 
>requires that the entire article be downloaded,

That may be true for pan but it's not true in general. The XHDR[1]
command or the newer HDR[2] command can be used to retrieve a specific
header field.

[1] See RFC 2980. Note that while the RFC is only informational,
    XHDR is widely implimented.

[1] See RFC 3977. Note that while the RFC is standards track,
    it's only 5 years old.

-- 
Shmuel (Seymour J.) Metz, SysProg and JOAT  <http://patriot.net/~shmuel>

Unsolicited bulk E-mail subject to legal action.  I reserve the
right to publicly post or ridicule any abusive E-mail.  Reply to
domain Patriot dot net user shmuel+news to contact me.  Do not
reply to spamtrap@library.lspace.org
Re: [pan] how to use additional X-headers for scoring?
#247321
Author: FritzS
Date: Tue, 04 Oct 2011 17:52
40 lines
3213 bytes
Am Tue, 04 Oct 2011 12:32:52 +0100 schrieb Whiskers:


> Usenet/NNTP Headers come in two sorts: the 'overview' which you get when
> you fetch 'headers only'; and all the others.  Scoring or filtering on
> headers that are not in the 'overview' requires that the entire article
> be downloaded, and is known as 'expensive scoring' because of the extra
> bandwidth and storage used.  Some usenet clients are unable to use
> 'expensive' scoring or filtering; others lack a convenient way for doing
> it but can be persuaded to by careful editing of a configuration file. 
> I think your version of Pan may be in the latter category.
> 
> You may need to 'escape' some characters in the headers you want to
> score on - for example > < $ . have to be 'escaped' in my newsreader's
> scorefile (by putting a \ in front).  You probably don't need to include
> any sort of wildcard [joker] in your NNTP-Posting-Host filter.
> 
> You can discover the 'overview' headers provided by your news-server by
> using telnet to connect (and log in if required).  This list is typical:


This works well now

[*.*]
Score: -521
X-Authenticated-User: \$\$m\$x1dqu63w4nbpzkjjlef

I got this hint from the pan mailing list!

-- 
FritzS




-- 
FritzS
Satire und Farce keinesfalls ausgeschlossen  ....
»Der Staat ist eine Firma«
ein Hammelartiger Brüller des Tages über das Wesen eines Staates ...
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