🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #187594

Re: pan development = 'unfocused' ?

#187594
From: Mike Dee
Date: Fri, 07 Jul 2006 21:23
151 lines
7371 bytes
On Thu, 06 Jul 2006 19:20:51 +0200, news wrote:

> On Sun, 02 Jul 2006 22:16:05 +1000, Mike Dee wrote:
[...]
>> AFAIK there isn't one. You are better off looking up score files, + PCRE
>> under slrn and MT-NewsWatcher for good advice on how to set up filters
>> in Pan.
> 
> OK I fetched the slrn FAQ.

Good. Note well, all PCRE scripts that work in slrn does not necessarily
mean they will also work in Pan. Pan uses a sub-set of the same slrn
scripts, but not all of them.

That said, Pan is still miles ahead of most news clients as far as
scripting goes... just not quite as good as slrn, Xnews and a few others.

>>> !! When I open the thread I see that there are unread replies to
>>>  a post which I made log ago and I've been waiting for !!
>> 
>> Edit your score file!!! i.e. it's under "Tools" menu, "Edit
>> Scorefile..."

> I had not yet followed that path of the menu, but I found the score file
> and edited with mc. I don't like vim - the default.

You change the default to an editor of your choice in your Pan
Preferences, so that when you click the "Edit Scorefile" menu under
"Tools" the score file opens directly in the editor of your choice. As I
mentioned previously, "Gedit" is a nice choice for an editor if you have
Gnome on Linux.

>> N.B. you may have to set up an external score file editor first, under
>> "Edit" menu "Preferences..." "Apps & Mail" tab, choose a score file
>> editor here. Gedit is nice if you have Gnome on Linux.
>> 
>> 
>> Enter everything between the "------" into the score file:
>> 
> No. My V 0.14.2 hasn't got any "-----". It uses %BOS  and %EOS as
> 'brackets'.

What I was meaning was "Copy and paste" what I had written from between
the "---------" 

I put the "----------" there as an indicator for you to follow as
to what to "copy and paste" and what not to copy.

Not that you were going to see any "---------" anywhere in your score file.

And yes, Pan score files do have:

%BOS (meaning: Beginning Of Scorefile)

%EOS (meaning: End Of Scorefile)

>> -----------------------------
>> [*]
>> 
>>   score:: =5000
>>     From: news <news@absamail\.co\.za>
>>     References: @absamail\.co\.za
>> -----------------------------
>> 
>> 1.) If your score file already has a [*], omit that part, copy and
>> paste the remainder to below the [*] of your score file.
> 
> As I understand the unexplained syntax, for the particular 'rule', ie.
> between the 'brackets', "[*]" means 'this rule applies for all groups' ?
> In your example: 'give score: 5000 for field 'From:' [is it AND or OR ?]
> field 'References:". Why is the ".co" enclosed in "\" ?

Yes [*] means what script follows below this, applies to all groups you
visit.

In script files, a period or dot or full-stop "." is a special meta
character that performs specific tasks in a script (it acts as a wildcard
meaning zero or any alphanumeric character)

For example if you had a regular expression that used the word "d.g" This
would score on the words dog, dug, dig, dag, etc.

As it stands it would also score on (sewin)g d(ay), but that's digressing.

Therefore, in order to use a "." as a regular "." it needs to be
"escaped". To do this you use a forward-slash "\"

To get the script to interpret @absamail.co.za correctly, the dots have to
be escaped to @absamail\.co\.za

If you were to make a subset score file that works in only one particular
group, for example "news.software.readers" you would enter it as:

[^news\.software\.readers$]
  then
   score:: = etc follows the above

The ^ means the beginning of the string "news.software.readers"
The $ means the end of the string "news.software.readers"
And all the dots have been escaped with "\"

This forces your scripts to run only in the group of your
choosing.

>> 2.) If you don't yet have a score file, you first may need to create
>> one. Use a plain text editor, start a new document, copy and paste the
>> above scoring into it and save it with the filename "Score" somewhere
>> in your path, your user home directory will do. Open Pan, go "Edit"
>> menu, "Preferences...", "Apps & Mail" tab, then "Browse" button, browse
>> to where you saved the Score" file.
>>
> Ok, the existing one works, except as per another post, "money" and "$"
>  can't be used to filter as eg. "home" [and other strings] can ?!

In PCRE the $ is another special meta-character (as described above)
so in order to score on a literal "$" you would also need to escape this
as \$ otherwise the script interprets a "$" as being the end of a string
of characters. As in: This really is the end of this sentence$

Another meta-character to be aware of is the forward-slash "\" to use a
literal "\" in a script, you'd need to enter it as two \\ where the first
"\" escapes the latter.
 
>>> There is no way for me to know that any marked replies to my urgent
>>> queries have arrived, without read the whole dammed list of subscribed
>>> group's header lists. And MUST open each thread to examine!!
>> 
>> FFS
>> 
> I don't understand "FFS".

Maybe you shouldn't try to understand everything all at once ;-)
 
>> "Edit" menu, "Preferences..." "Color" tab, under "Header Pane scoring"
>> make sure there is a check mark (tick) in the box to the left of 'Color
>> the "subject" column'. If you've entered the above scoring into your
>> score file you will see your posts and followups to them highlighted
>> for you by now.
>> 
> OK that now makes a BIGGER yellow marking of the important header, hence
> easier to find. But it/they could still be several screens down the
> header panel.  Go straight to the first/next 'newly downloaded article'
> seems such an obvious facility, which AFAIK I used on Agent 10 years
> ago.

I'm sorry that "shift key + N" doesn't work for you, it works for me. Make
use of the "Go" menus.

-- 
dee
Technical Details
Message-ID: <pan.2006.07.07.21.23.25.158362@emteedee.invalid>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.ispa.de!news.henrynet.se!not-for-mail
References: <pan.2006.07.01.14.27.36.472989@absamail.co.za> <pan.2006.07.02.12.16.04.174858@emteedee> <pan.2006.07.06.06.40.32.838742@absamail.co.za>

Show Full Headers
Complete Article Headers
Message-ID: <pan.2006.07.07.21.23.25.158362@emteedee.invalid>
Subject: Re: pan development = 'unfocused' ?
Date: Sat, 08 Jul 2006 07:23:27 +1000
From: Mike Dee <emteedee@invalid.invalid>
References: <pan.2006.07.01.14.27.36.472989@absamail.co.za> <pan.2006.07.02.12.16.04.174858@emteedee> <pan.2006.07.06.06.40.32.838742@absamail.co.za>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.ispa.de!news.henrynet.se!not-for-mail
Organization: Poor Boy
User-Agent: Pan 0.14.2.91-4ubuntu6 (Ubuntu 6.06 LTS "DapperDrake, i386)
Newsgroups: alt.comp.software.newsreaders,news.software.readers
X-Face: $W<X:Uw4$"nTXRHqqZ=.|pFI@K,TNNH0i>-J;
 N5/yst7]cQb.o^L$oAhs-J!CAOUMQ^NHu3aTb9H8awW~4Y.LR`[o}Rz6Xf=^krb-AwUiM"7zA+QR<vWz'8>hKiTOyd]h
 z]7m=[nhuH{NMrE>~][PM`wSKd?TFV-.glh)>N
X-Reject-Dept: This Pan automatically rejects all posts made by,
 or are about Alan Connor, long may he R.I.P. - period.
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Lines: 151
X-Authenticated-User: dee
X-Complaints-To: abuse@henrynet.se