🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #247318

Re: [pan] how to use additional X-headers for scoring?

#247318
From: 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 
-- ~~~~~~~~~~
Technical Details
Message-ID: <slrnj8lrn4.d4v.catwheezel@ID-107770.user.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news2.euro.net!feeder.news-service.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <j6cuda$trd$1@news.albasani.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrnj8lrn4.d4v.catwheezel@ID-107770.user.individual.net>
Subject: Re: [pan] how to use additional X-headers for scoring?
Date: Tue, 04 Oct 2011 12:32:52 +0100
From: Whiskers <catwheezel@operamail.com>
References: <j6cuda$trd$1@news.albasani.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news2.euro.net!feeder.news-service.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: alt.comp.software.newsreaders,news.software.readers
Followup-To: news.software.readers
Organization: is an alien concept
Lines: 96
Reply-To: Whiskers <catwheezel@gmx.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net DxFyw3bHkDzigQ1KANwSFAFzKBtYqy1NhTolm+PcUDpLyUTege
X-Orig-Path: ID107770.user.individual.net!not-for-mail
Cancel-Lock: sha1:H/5Oaj7jZrJMJZMA2ukdZ/MRWEs=
X-Face: (8UIp\C%, 7b>N'Aa}l7v*-4z\fb2ab=[r*LKrwTU]>W\E]YS3Cb3mZo1Ty.t2%6_KsTV_
 "Pmt)1xC~QW%bU/xrlDuux";
 aJOH0|Ka^MEDf"9Ck?FcYcR)aI~e[\"NW,mpyK}Q6dU[\BmvwRD00
 xYer]; 5mR_!\-haGb/=!*bDWCm0~!G7ewqq7*|#g2#uEBhnKk60qLJ":i_#zfZ'cH`2a^!q_lzxh@
 p&  g^8<z5>HA
User-Agent: slrn/pre0.9.9-94 (Linux)
X-Original-Bytes: 4365