Thread View: news.software.readers
18 messages
18 total messages
Started by Bob the Burger-Builder
Thu, 03 May 2007 22:11
Pan - custom score filters (more on)
Author: Bob the Burger-Builder
Date: Thu, 03 May 2007 22:11
Date: Thu, 03 May 2007 22:11
40 lines
2228 bytes
2228 bytes
Eyestrain'R'Us :( So far I've got this working, %%% BEGIN Custom config ============================== %BOS [^\S] % PLONK for all groups Score: =-9999 From: ^"Idiot" <idiot@aol\.con>|"Bozo"<bozo@hotmail.con>|"Pest" <best@yahoo.con>$ %EOS %BOS [^\S] % WATCH for all groups Score: -9999 From: ^"Mentor" <mentor@genius\.org>|"Interesting" <interesting@witty\.one>|"Joker" <joker@funny\.org>|$ %EOS %%% END Custom config ================================ I've yet to figure out how to get each entry on it's own line without breaking things. I've tried |\n at the end of each line and several combinations thereof, but can't find the clues in the man.3.pcrepattern man page. (I am getting a tad boggle-eyed though.) My one remaining biscuit goes to the first with the functioning clue. ie: How to do this, %BOS [^\S] % PLONK for all groups Score: =-9999 From: ^"Idiot" <idiot@aol\.con>|BREAK "Bozo"<bozo@hotmail.con>|BREAK "Pest" <best@yahoo.con>$ %EOS What replaces "BREAK" ?
Re: Pan - custom score filters (more on)
Author: Mike Dee
Date: Fri, 04 May 2007 01:24
Date: Fri, 04 May 2007 01:24
73 lines
3625 bytes
3625 bytes
On Thu, 03 May 2007 22:11:00 +0000, Bob the Burger-Builder wrote: > Eyestrain'R'Us :( > > So far I've got this working, > > %%% BEGIN Custom config ============================== > > %BOS > [^\S] % PLONK for all groups > Score: =-9999 > From: ^"Idiot" <idiot@aol\.con>|"Bozo"<bozo@hotmail.con>|"Pest" > <best@yahoo.con>$ %EOS > > %BOS > [^\S] % WATCH for all groups > Score: -9999 > From: ^"Mentor" <mentor@genius\.org>|"Interesting" > <interesting@witty\.one>|"Joker" <joker@funny\.org>|$ %EOS I don't know why this would be a "WATCH" score? A -9999 in Pan is a KILL to me. Are you using the "Tools" menu, "Custom Filters" submenu to create these? You should begin using "Edit Scorefile" submenu instead. It is much easier to work with once you have a Score file started and a decent external editor setup. > %%% END Custom config ================================ > > I've yet to figure out how to get each entry on it's own line without > breaking things. I've tried |\n at the end of each line and several > combinations thereof, but can't find the clues in the man.3.pcrepattern > man page. (I am getting a tad boggle-eyed though.) > > My one remaining biscuit goes to the first with the functioning clue. > > ie: How to do this, > > %BOS > [^\S] % PLONK for all groups > Score: =-9999 > From: ^"Idiot" <idiot@aol\.con>|BREAK "Bozo"<bozo@hotmail.con>|BREAK > "Pest" <best@yahoo.con>$ > %EOS > > What replaces "BREAK" ? You could use OR "::" I guess, but for a score on the "From" header why not just keep with the pipe? You don't need their full email address in the From header either, if their names are distinctive enough. [*] % PLONK for all groups using OR (poor) Score:: =-9999 From: Idiot From: Bozo From: Pest [*] % PLONK for all groups using PIPE (better) Score: =-9999 From: Idiot|Bozo|Pest [*] % PLONK for all groups using OR and PIPE (even better) Score:: =-9999 From: Idiot|Bozo|Pest Message-ID: idiot@aol|bozo@hotmail|pest@yahoo References: idiot@aol|bozo@hotmail|pest@yahoo -- dee
Re: Pan - custom score filters (more on)
Author: Mike Dee
Date: Fri, 04 May 2007 01:37
Date: Fri, 04 May 2007 01:37
20 lines
1920 bytes
1920 bytes
Mike Dee <mikedee@emteedee.invalid> wrote: > [*] % PLONK for all groups using OR and PIPE (even better) > > Score:: =-9999 > From: Idiot|Bozo|Pest > Message-ID: idiot@aol|bozo@hotmail|pest@yahoo References: > idiot@aol|bozo@hotmail|pest@yahoo Just fixing Pan's bad wrapping (Pan bug) [*] % PLONK for all groups using OR and PIPE (even better) Score:: =-9999 From: Idiot|Bozo|Pest Message-ID: idiot@aol|bozo@hotmail|pest@yahoo References: idiot@aol|bozo@hotmail|pest@yahoo -- dee
Re: Pan - custom score filters (more on)
Author: Bob the Burger-Builder
Date: Fri, 04 May 2007 10:03
Date: Fri, 04 May 2007 10:03
37 lines
2351 bytes
2351 bytes
Mike Dee <mikedee@emteedee.invalid> apparently said ...: > On Thu, 03 May 2007 22:11:00 +0000, Bob the Burger-Builder wrote: > >> Eyestrain'R'Us :( >> >> So far I've got this working, >> >> %%% BEGIN Custom config ============================== >> >> %BOS >> [^\S] % PLONK for all groups >> Score: =-9999 >> From: ^"Idiot" <idiot@aol\.con>|"Bozo"<bozo@hotmail.con>|"Pest" >> <best@yahoo.con>$ %EOS >> >> %BOS >> [^\S] % WATCH for all groups >> Score: -9999 >> From: ^"Mentor" <mentor@genius\.org>|"Interesting" >> <interesting@witty\.one>|"Joker" <joker@funny\.org>|$ %EOS > > I don't know why this would be a "WATCH" score? A -9999 in Pan is a KILL > to me. My bad. Tired eyes and finger while writing the example here. > Are you using the "Tools" menu, "Custom Filters" submenu to create these? > You should begin using "Edit Scorefile" submenu instead. It is much easier > to work with once you have a Score file started and a decent external > editor setup. This and external editing.
Re: Pan - custom score filters (more on)
Author: Bob the Burger-Builder
Date: Fri, 04 May 2007 10:05
Date: Fri, 04 May 2007 10:05
24 lines
2165 bytes
2165 bytes
Mike Dee <emteedee@invalid.invalid> apparently said ...: > Mike Dee <mikedee@emteedee.invalid> wrote: > >> [*] % PLONK for all groups using OR and PIPE (even better) >> >> Score:: =-9999 >> From: Idiot|Bozo|Pest >> Message-ID: idiot@aol|bozo@hotmail|pest@yahoo References: >> idiot@aol|bozo@hotmail|pest@yahoo > > Just fixing Pan's bad wrapping (Pan bug) > > [*] % PLONK for all groups using OR and PIPE (even better) > > Score:: =-9999 > From: Idiot|Bozo|Pest > Message-ID: idiot@aol|bozo@hotmail|pest@yahoo References: > idiot@aol|bozo@hotmail|pest@yahoo This looks like SLRN's s-lang syntax, which doesn't properly translate into Pan's pcre syntax required if you move beyond the application-generated score file construction. Unless I've missed something?
Re: Pan - custom score filters (more on)
Author: Mike Dee
Date: Fri, 04 May 2007 10:51
Date: Fri, 04 May 2007 10:51
29 lines
2159 bytes
2159 bytes
Bob the Burger-Builder <Burger@Build.dur> wrote: >> Just fixing Pan's bad wrapping (Pan bug) >> >> [*] % PLONK for all groups using OR and PIPE (even better) >> >> Score:: =-9999 >> From: Idiot|Bozo|Pest >> Message-ID: idiot@aol|bozo@hotmail|pest@yahoo References: >> idiot@aol|bozo@hotmail|pest@yahoo > > This looks like SLRN's s-lang syntax, which doesn't properly > translate into Pan's pcre syntax required if you move beyond the > application-generated score file construction. Unless I've missed > something? Yes, this seems to want to wrap, when I send it off!!! grrrr References: are supposed to be on a line all of its own. It's pure Pan or Xnews PCRE. This time perhaps? Score:: =-9999 From: Idiot|Bozo|Pest Message-ID: idiot@aol|bozo@hotmail|pest@yahoo References: idiot@aol|bozo@hotmail|pest@yahoo -- dee
Re: Pan - custom score filters (more on)
Author: Bob the Burger-Builder
Date: Fri, 04 May 2007 12:12
Date: Fri, 04 May 2007 12:12
37 lines
2885 bytes
2885 bytes
Mike Dee <mikedee@emteedee.invalid> apparently said ...: [...] > References: are supposed to be on a line all of its own. It's pure Pan or > Xnews PCRE. > This time perhaps? > > Score:: =-9999 > From: Idiot|Bozo|Pest > Message-ID: idiot@aol|bozo@hotmail|pest@yahoo References: > idiot@aol|bozo@hotmail|pest@yahoo So now, when adding manually to a custom list, one has three entries to make, not one swipe'n'paste? One of the reasons behind using custom configs is to make editing a practical matter. Ever tried wading through a couple of months worth of auto-generated scorings? Once one has one's basics set up, permanent plonk lists, permanent watch lists, standard filterings, etc, managing the casual additions from an application's semi-auto processes is a lot easier, as is scoopong out details from those additions to include them in permanent custom configs I've already done all this for my SLRN, including "bolt-on" score lists for specific/complex things. AFAICT, the pcre formated Pan score syntax does not allow for "include xyz.score", so the importance of a well sequenced semi-custom score file is even more desirable IMO. And so I'm back once again to the horizontal list I've got working in pcre format, and how do I turn it into multiple lines whithout breaking prce syntax? s-lang is comparativly easy compared to pcre IMO, but this might be because I'm more used to SLRN score files.
Re: Pan - custom score filters (more on)
Author: Mike Dee
Date: Fri, 04 May 2007 12:36
Date: Fri, 04 May 2007 12:36
18 lines
2227 bytes
2227 bytes
Bob the Burger-Builder <Burger@Build.dur> wrote: >> Message-ID: idiot@aol|bozo@hotmail|pest@yahoo References: >> idiot@aol|bozo@hotmail|pest@yahoo How the heck did that manage to wrap like that? > > So now, when adding manually to a custom list, one has three > entries to make, not one swipe'n'paste? > > One of the reasons behind using custom configs is to make editing > a practical matter. Ever tried wading through a couple of months > worth of auto-generated scorings? I never use auto-generated score files. Nothing to wade through here. -- dee
Re: Pan - custom score filters (more on)
Author: Bob the Burger-Builder
Date: Fri, 04 May 2007 14:14
Date: Fri, 04 May 2007 14:14
24 lines
2550 bytes
2550 bytes
Mike Dee <emteedee@invalid.invalid> apparently said ...: > Bob the Burger-Builder <Burger@Build.dur> wrote: > >>> Message-ID: idiot@aol|bozo@hotmail|pest@yahoo References: >>> idiot@aol|bozo@hotmail|pest@yahoo > > How the heck did that manage to wrap like that? Coz you'r eusing XNews? (Cheap shot, sorry! :) >> >> So now, when adding manually to a custom list, one has three entries to >> make, not one swipe'n'paste? >> >> One of the reasons behind using custom configs is to make editing a >> practical matter. Ever tried wading through a couple of months worth of >> auto-generated scorings? > > I never use auto-generated score files. Nothing to wade through here. Kinda handy when you just want to dump'n'go. :) (Clean up later kinda thing?)
Re: Pan - custom score filters (more on)
Author: Blinky the Shark
Date: Fri, 04 May 2007 15:55
Date: Fri, 04 May 2007 15:55
33 lines
2162 bytes
2162 bytes
Bob the Burger-Builder wrote: > Mike Dee <mikedee@emteedee.invalid> apparently said ...: > > [...] >> References: are supposed to be on a line all of its own. It's pure Pan or >> Xnews PCRE. >> This time perhaps? >> >> Score:: =-9999 >> From: Idiot|Bozo|Pest >> Message-ID: idiot@aol|bozo@hotmail|pest@yahoo References: >> idiot@aol|bozo@hotmail|pest@yahoo > > So now, when adding manually to a custom list, one has three entries to > make, not one swipe'n'paste? J u s t s i m p l i f y i t . From: moe From: larry From: curley End of problem. Lots of lines? Yes. No big deal. Easy to edit? Yes. Works for both clients? Yes. -- Blinky RLU 297263 Killing all posts from Google Groups The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: Pan - custom score filters (more on)
Author: Blinky the Shark
Date: Fri, 04 May 2007 15:57
Date: Fri, 04 May 2007 15:57
26 lines
2289 bytes
2289 bytes
Mike Dee wrote: > Bob the Burger-Builder <Burger@Build.dur> wrote: > >>> Message-ID: idiot@aol|bozo@hotmail|pest@yahoo References: >>> idiot@aol|bozo@hotmail|pest@yahoo > > How the heck did that manage to wrap like that? >> >> So now, when adding manually to a custom list, one has three entries >> to make, not one swipe'n'paste? >> >> One of the reasons behind using custom configs is to make editing a >> practical matter. Ever tried wading through a couple of months worth >> of auto-generated scorings? > > I never use auto-generated score files. Nothing to wade through here. I use them in slrn (for Subject headers; i.e., threads) and still have nothing to wade through. They go at the end of the file. They expire in X days. No wading needed. -- Blinky RLU 297263 Killing all posts from Google Groups The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: Pan - custom score filters (more on)
Author: Peter J Ross
Date: Fri, 04 May 2007 16:18
Date: Fri, 04 May 2007 16:18
77 lines
3223 bytes
3223 bytes
In news.software.readers on Thu, 03 May 2007 22:11:00 GMT, Bob the
Burger-Builder <Burger@Build.dur> wrote:
>
> Eyestrain'R'Us :(
>
> So far I've got this working,
>
> %%% BEGIN Custom config ==============================
>
> %BOS
> [^\S] % PLONK for all groups
Does Pan use regular expressions instead of wildmats for newsgroup
names then? If so, its format is less like Slrn's than I thought.
> Score: =-9999
> From: ^"Idiot" <idiot@aol\.con>|"Bozo"<bozo@hotmail.con>|"Pest" <best@yahoo.con>$
> %EOS
The ^ only matches the "Idiot" entry, and the $ only matches the
"Pest" entry.
I suggest ^(...|...|...)$
But idiots, bozos and pests like to morph, so this kind of rule may be
too strict in practice.
> %BOS
> [^\S] % WATCH for all groups
> Score: -9999
> From: ^"Mentor" <mentor@genius\.org>|"Interesting" <interesting@witty\.one>|"Joker" <joker@funny\.org>|$
> %EOS
Same applies as above. And this time you have an extra "|", which
means that this pattern will match *everything* that ends with a
newline.
> %%% END Custom config ================================
>
> I've yet to figure out how to get each entry on it's own line without
> breaking things.
Add an extra colon after "Score":
Score:: -9999
From: ^"Mentor" <mentor@genius\.org>$
From: ^"Interesting" <interesting@witty\.one>$
From: ^"Joker" <joker@funny\.org>$
> I've tried |\n at the end of each line and several
> combinations thereof, but can't find the clues in the man.3.pcrepattern
> man page. (I am getting a tad boggle-eyed though.)
See "INTERNAL OPTION SETTINGS".
> My one remaining biscuit goes to the first with the functioning clue.
>
> ie: How to do this,
>
> %BOS
> [^\S] % PLONK for all groups
> Score: =-9999
> From: ^"Idiot" <idiot@aol\.con>|BREAK
> "Bozo"<bozo@hotmail.con>|BREAK
> "Pest" <best@yahoo.con>$
> %EOS
>
> What replaces "BREAK" ?
You can try adding {?m} at the start of the regex, i.e. after "From:",
because that turns on "multi-line" parsing, but I doubt if it will
work in Pan. Pan doesn't parse the regex; PCRE does.
--
PJR :-)
Re: Pan - custom score filters (more on)
Author: Bob the Burger-Builder
Date: Fri, 04 May 2007 16:23
Date: Fri, 04 May 2007 16:23
45 lines
2894 bytes
2894 bytes
Blinky the Shark <no.spam@box.invalid> apparently said ...: > Bob the Burger-Builder wrote: >> Mike Dee <mikedee@emteedee.invalid> apparently said ...: >> >> [...] >>> References: are supposed to be on a line all of its own. It's pure Pan >>> or Xnews PCRE. >>> This time perhaps? >>> >>> Score:: =-9999 >>> From: Idiot|Bozo|Pest >>> Message-ID: idiot@aol|bozo@hotmail|pest@yahoo References: >>> idiot@aol|bozo@hotmail|pest@yahoo >> >> So now, when adding manually to a custom list, one has three entries to >> make, not one swipe'n'paste? > > J u s t s i m p l i f y i t . > > From: moe > From: larry > From: curley > > End of problem. > > Lots of lines? Yes. No big deal. > Easy to edit? Yes. > Works for both clients? Yes. Works for both clients - no. Lots of individual lines are just what I want, rather than one long continuous horizontal line, like From: ^|"moe" <moe@moed.down>|"larry" <larry@suit.org>|"curley" curly@sue.com|$ Your SLRN/s-lang example here would be great, if it worked in pcre syntax. How are you geting a result here? Are you actually writing this into a score file and testing it in both SLRN and Pan, or just assuming it will work because something else worked? Sorry to sound annoyed, but nothing other than the examples I've provided have yielded a result so far.
Re: Pan - custom score filters (more on)
Author: Peter J Ross
Date: Fri, 04 May 2007 16:28
Date: Fri, 04 May 2007 16:28
27 lines
2153 bytes
2153 bytes
In news.software.readers on Fri, 04 May 2007 12:12:13 GMT, Bob the Burger-Builder <Burger@Build.dur> wrote: > And so I'm back once again to the horizontal list I've got > working in pcre format, and how do I turn it into multiple > lines whithout breaking prce syntax? I've given my best attempt at an answer upthread, but I'll add that you seem to be misunderstanding which parts of the scorefile are regexes. In Score:: -9999 From: bozo@example\.com From: idiot@example\.com there are two separate regexes, each of which doesn't start until after "From: ". > s-lang is comparativly easy compared to pcre IMO, but this > might be because I'm more used to SLRN score files. It might also be because S-Lang's regexes are the most primitive I've seen except in basic grep, while PCRE's are among the most advanced. -- PJR :-)
Re: Pan - custom score filters (more on)
Author: Blinky the Shark
Date: Fri, 04 May 2007 17:26
Date: Fri, 04 May 2007 17:26
53 lines
2972 bytes
2972 bytes
Bob the Burger-Builder wrote: > Blinky the Shark <no.spam@box.invalid> apparently said ...: > >> Bob the Burger-Builder wrote: >>> Mike Dee <mikedee@emteedee.invalid> apparently said ...: >>> >>> [...] >>>> References: are supposed to be on a line all of its own. It's pure Pan >>>> or Xnews PCRE. >>>> This time perhaps? >>>> >>>> Score:: =-9999 >>>> From: Idiot|Bozo|Pest >>>> Message-ID: idiot@aol|bozo@hotmail|pest@yahoo References: >>>> idiot@aol|bozo@hotmail|pest@yahoo >>> >>> So now, when adding manually to a custom list, one has three entries to >>> make, not one swipe'n'paste? >> >> J u s t s i m p l i f y i t . >> >> From: moe >> From: larry >> From: curley >> >> End of problem. >> >> Lots of lines? Yes. No big deal. >> Easy to edit? Yes. >> Works for both clients? Yes. > > Works for both clients - no. Okay. > Lots of individual lines are just what I want, rather than one long > continuous horizontal line, like > > From: ^|"moe" <moe@moed.down>|"larry" <larry@suit.org>|"curley" curly@sue.com|$ > > Your SLRN/s-lang example here would be great, if it worked in pcre syntax. > > How are you geting a result here? Are you actually writing this into a > score file and testing it in both SLRN and Pan, or just assuming it will I've used it this way for a perhaps a year or more. But, like I said, "okay". -- Blinky RLU 297263 Killing all posts from Google Groups The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: Pan - custom score filters (more on)
Author: Bob the Burger-Builder
Date: Fri, 04 May 2007 17:44
Date: Fri, 04 May 2007 17:44
44 lines
3218 bytes
3218 bytes
Peter J Ross <pjr@example.invalid> apparently said ...: > In news.software.readers on Fri, 04 May 2007 12:12:13 GMT, Bob the > Burger-Builder <Burger@Build.dur> wrote: > >> And so I'm back once again to the horizontal list I've got working in >> pcre format, and how do I turn it into multiple lines whithout breaking >> prce syntax? > > I've given my best attempt at an answer upthread, but I'll add that you > seem to be misunderstanding which parts of the scorefile are regexes. This could be true. > In > Score:: -9999 > From: bozo@example\.com > From: idiot@example\.com > there are two separate regexes, each of which doesn't start until after > "From: ". I think I might have an idea of what you mean here but, if you've seen the examples I've posted up you'll maybe have seen the problems I've (hopefully) solved, and the one I'm still stuck with, namely, how to break a line of this|that|other into this that other without stalling the score file in Pan. IOW, how to "fool" Pan into reading sequential lines as if they were the same line, a bit like \n in bash scripts. >> s-lang is comparativly easy compared to pcre IMO, but this might be >> because I'm more used to SLRN score files. > > It might also be because S-Lang's regexes are the most primitive I've > seen except in basic grep, while PCRE's are among the most advanced. Ah! Then we're looking at possibly more sophisticated stuff? I KNEW there was an incompatibility thing going on here! Surgical equipment versus a lump hammer?
Re: Pan - custom score filters (more on)
Author: Peter J Ross
Date: Fri, 04 May 2007 19:20
Date: Fri, 04 May 2007 19:20
30 lines
1980 bytes
1980 bytes
In news.software.readers on Fri, 04 May 2007 17:44:41 GMT, Bob the Burger-Builder <Burger@Build.dur> wrote: > how to break a line of this|that|other into > > this > that > other > > without stalling the score file in Pan. IOW, how to "fool" Pan into > reading sequential lines as if they were the same line, a bit like \n in > bash scripts. I don't think it can be done. Does it matter? How is foo bar foobar better than foo|bar|foobar ? Anyway, this definitely will work in both Slrn and Pan: Score:: <numeral> Header: foo Header: bar Header: foobar -- PJR :-)
Re: Pan - custom score filters (more on)
Author: Bob the Burger-Builder
Date: Fri, 04 May 2007 21:19
Date: Fri, 04 May 2007 21:19
48 lines
3181 bytes
3181 bytes
Peter J Ross <pjr@example.invalid> apparently said ...: > In news.software.readers on Fri, 04 May 2007 17:44:41 GMT, Bob the > Burger-Builder <Burger@Build.dur> wrote: > >> how to break a line of this|that|other into >> >> this >> that >> other >> >> without stalling the score file in Pan. IOW, how to "fool" Pan into >> reading sequential lines as if they were the same line, a bit like \n in >> bash scripts. > > I don't think it can be done. Does it matter? How is > foo > bar > foobar > better than > foo|bar|foobar > ? When editing a custom score file, being able to whip down an easy to scan list takes that hassle out of searching through the reams of redundant stuff a standard application auto-generated scorefile gives you. If it is also in sequential lines, one beneath the other, it is also a lot easier than a single line that stretches horizontally, ever growing longer and longer as you add new permanent items to it. Its a bit like pre-wrapping text for easier reading. > Anyway, this definitely will work in both Slrn and Pan: > > Score:: <numeral> > Header: foo > Header: bar > Header: foobar Yes, now I've stripped out all the bits I thought I needed to do the job and reconstructed my Pan score file, it does, and now you can laugh at me because this is exactly what I've been looking to do since the start of the thread. >8( I had a feeling I'd propbably dived deeper in than I needed to and made things more complex than they needed to be. Ah well, nothing ventured... Thanks for the help you guys. :)
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