Thread View: news.software.readers
15 messages
15 total messages
Started by Zebee Johnstone
Wed, 14 Jul 1999 00:00
[slrn] scornig by reference
Author: Zebee Johnstone
Date: Wed, 14 Jul 1999 00:00
Date: Wed, 14 Jul 1999 00:00
30 lines
1406 bytes
1406 bytes
I read several high volume newsgroups where thread drift and trolling are
commonplace.
I currently score things that have my name in the references header
so I can track replies to things I've posted, but I keep seeing them
long after the thread has ceased to ahve anything to do with
something I'm interested in.
How can I tell slrn to only score it if the regexp is say in
the first 3 reference items?
the current line is
References: zebee
which catches any post with that anywhere in the reference line,
do I have to do soemthing like
References:.<*zebee*>
References:.<*> <*zebee*>
References:.<*> <*> <*zebee*>
Zebee
--
Zebee Johnstone (zebee@zip.com.au) Proud holder of aus.motorcycles Poser Permit #1.
"You don't own an Italian motorcycle
- you merely have the privilege of paying its bills."
Re: [slrn] scornig by reference
Author: J. Moreno
Date: Wed, 14 Jul 1999 00:00
Date: Wed, 14 Jul 1999 00:00
25 lines
1413 bytes
1413 bytes
Zebee Johnstone <zebee@zip.com.au> wrote: -snip- > How can I tell slrn to only score it if the regexp is say in > the first 3 reference items? > > the current line is > References: zebee > which catches any post with that anywhere in the reference line, > do I have to do soemthing like > References:.<*zebee*> > References:.<*> <*zebee*> > References:.<*> <*> <*zebee*> I don't use slrn but: References: zebee[^>]+> * <[^>]+> <[^>]+>$ should be a start. -- John Moreno
Re: [slrn] scornig by reference
Author: Zebee Johnstone
Date: Thu, 15 Jul 1999 00:00
Date: Thu, 15 Jul 1999 00:00
14 lines
1006 bytes
1006 bytes
In news.software.readers on 15 Jul 1999 06:05:24 GMT Thorfinn <thorfinn@netizen.com.au> wrote: >works for me... Yes, possibly that should be: > >References: thorfinn[^@ ]*@[^@ ]*tertius\.net\.au[^@ ]*> +<[^>]+> +<[^>]+> *$ > OK.. seems to work, although it seems to do 4 references... So explain it dammit :) regexp and me don't mix! Zebee
Re: [slrn] scornig by reference
Author: Thorfinn
Date: Thu, 15 Jul 1999 00:00
Date: Thu, 15 Jul 1999 00:00
43 lines
2437 bytes
2437 bytes
In news.software.readers, on 14 Jul 1999 21:50:31 GMT
Zebee Johnstone <zebee@zip.com.au> wrote:
> I read several high volume newsgroups where thread drift and trolling are
> commonplace.
:) No prizes for guessing which froups?
> How can I tell slrn to only score it if the regexp is say in
> the first 3 reference items?
> the current line is
> References: zebee
> which catches any post with that anywhere in the reference line,
> do I have to do soemthing like
> References:.<*zebee*>
> References:.<*> <*zebee*>
> References:.<*> <*> <*zebee*>
*nodnod* Yeah, sortof.
References: thorfinn[^@ ]*@[^@ ]*tertius\.net\.au[^@ ]* *$
References: thorfinn[^@ ]*@[^@ ]*tertius\.net\.au[^@ ]* +[^@ ]+@[^@ ]+ *$
References: thorfinn[^@ ]*@[^@ ]*tertius\.net\.au[^@ ]* +[^@ ]+@[^@ ]+ +[^@ ]+@[^@ ]+ *$
works for me... Yes, possibly that should be:
References: thorfinn[^@ ]*@[^@ ]*tertius\.net\.au[^@ ]*> +<[^>]+> +<[^>]+> *$
now that I think about it.
That should catch more of the broken things about.
Meep,
Thorfinn
--
<a href = "http://www.netizen.com.au/"> thorfinn@netizen.com.au </a>
The Roman Rule: The one who says it cannot be done should
never interrupt the one who is doing it.
-- BSD fortune file
Re: [slrn] scornig by reference
Author: Zebee Johnstone
Date: Thu, 15 Jul 1999 00:00
Date: Thu, 15 Jul 1999 00:00
15 lines
973 bytes
973 bytes
In news.software.readers on Wed, 14 Jul 1999 21:34:40 -0400 J. Moreno <planb@newsreaders.com> wrote: > >I don't use slrn but: > >References: zebee[^>]+> * <[^>]+> <[^>]+>$ > >should be a start. No, doesn't seem to work. Doesn't flag *any* posts with "zebee" in the references header. Zebee
Re: [slrn] scornig by reference
Author: Thorfinn
Date: Fri, 16 Jul 1999 00:00
Date: Fri, 16 Jul 1999 00:00
25 lines
2322 bytes
2322 bytes
In news.software.readers, on Fri, 16 Jul 1999 08:15:43 GMT
Electric Cowboy <Electric_Cowboy@yahoo.moc> wrote:
> On 16 Jul 1999 02:55:19 GMT, thorfinn@netizen.com.au (Thorfinn) wrote:
> > Now for a detailed explanation of the RE...
> An excellent description of the regexp capability. Question: Is this
> from the Slrn, S-Lang docs, or your creation? To be archived.
Well, I wrote this particular RE... the documentation for slang REs is
on some webpage or other already. I forget the URL...
I personally go read the slang source code whenever I need to figure
out what the slang REs are doing... they're mostly a subset of full
REs, plus a couple of specific features.
Later,
Thorfinn
--
<a href = "http://www.netizen.com.au/"> thorfinn@netizen.com.au </a>
"Yeah, I know. It was a long time ago and I was a lot more optimistic then."
"And besides, the CNAME is dead."
-- Mike Sphar and Greg Andrews, reminiscing in the scary.devil.monastery
Re: [slrn] scornig by reference
Author: J. Moreno
Date: Fri, 16 Jul 1999 00:00
Date: Fri, 16 Jul 1999 00:00
23 lines
1539 bytes
1539 bytes
Zebee Johnstone <zebee@zip.com.au> wrote: > J. Moreno <planb@newsreaders.com> wrote: > > > >I don't use slrn but: > > > >References: zebee[^>]+> * <[^>]+> <[^>]+>$ > > > >should be a start. > > No, doesn't seem to work. Doesn't flag *any* posts with "zebee" in > the references header. Hmn, I don't see anything that would prevent that from matching the id third-from-the-right. In any case, there was a much better answer posted by JED in article: <slrn7ot839.v87.davis@aluche.mit.edu> -- John Moreno
Re: [slrn] scornig by reference
Author: Thorfinn
Date: Fri, 16 Jul 1999 00:00
Date: Fri, 16 Jul 1999 00:00
75 lines
4255 bytes
4255 bytes
In news.software.readers, on 16 Jul 1999 00:24:54 GMT
Zebee Johnstone <zebee@zip.com.au> wrote:
> In news.software.readers on 15 Jul 1999 10:23:20 GMT
> Zebee Johnstone <zebee@zip.com.au> wrote:
> >In news.software.readers on 15 Jul 1999 06:05:24 GMT
> >Thorfinn <thorfinn@netizen.com.au> wrote:
> >>works for me... Yes, possibly that should be:
> >>References: thorfinn[^@ ]*@[^@ ]*tertius\.net\.au[^@ ]*> +<[^>]+> +<[^>]+> *$
> >OK.. seems to work, although it seems to do 4 references...
> No.. doesn't work, looking closer.
> So looks like it's *only* getting stuff 3 back...
*nodnod* Sorry about that. I didn't make it clear what it was doing,
'cos I have a tendency to think in REs...
Let me go through the RE in detail.
You'll need all three of:
References: thorfinn[^@ ]*@[^@ ]*tertius\.net\.au[^@ ]*> +<[^>]+> +<[^>]+> *$
References: thorfinn[^@ ]*@[^@ ]*tertius\.net\.au[^@ ]*> +<[^>]+> *$
References: thorfinn[^@ ]*@[^@ ]*tertius\.net\.au[^@ ]*> *$
to get the third post after yours, second post after yours and first
post after yours.
This could be done cleaner (in one single RE) with gnu or perl REs...
but unfortunately slrn uses slang regexps (which is an *endless*
source of confusion, and I really do wish something could be done
about that).
Slang REs don't support the grouping operator, so putting all three
expressions on one line is impossible.
Now for a detailed explanation of the RE...
References: thorfinn[^@ ]*@[^@ ]*tertius\.net\.au[^@ ]*> +<[^>]+> *$
1------12----232----24--------------42----256678---85990
1--1: What it looks like. Literal character matches, nothing special.
2--2: [^abc] is an RE that matches "all characters *except* a, b or c"
so this section matches anything except an @ or a space. "*"
means "match zero or more of the previous atom".
So this matches any number of characters until it finds a space
or @.
3: Just match an @ character.
4--4: Literal matches for everything. \. means match a "." character
because "." in an RE means "match any character".
5: Match a closing angle bracket >
66: Match one or more spaces. + in an RE means "match one or more
of the previous atom".
7: Match an opening angle bracket <
8--8: [^>] is match any character except for >... so this is match
one or more characters of any kind until you find a >
99: Match zero or more spaces.
0: Match the "end of line". The expression must be at the "end of
the line" when it gets here.
You probably don't need the sections labeled 2--2:, because they're
there because I change around my headers sufficiently to mess up the
RE.
Meep,
Thorf
--
<a href = "http://www.netizen.com.au/"> thorfinn@netizen.com.au </a>
O is for Orestes, who choked on his food
P is for Petra, who nymphs stripped quite nude
-- Doug Atkinson <douga@io.com> in rec.games.roguelike.nethack
Re: [slrn] scornig by reference
Author: Zebee Johnstone
Date: Fri, 16 Jul 1999 00:00
Date: Fri, 16 Jul 1999 00:00
40 lines
1926 bytes
1926 bytes
In news.software.readers on 15 Jul 1999 10:23:20 GMT Zebee Johnstone <zebee@zip.com.au> wrote: >In news.software.readers on 15 Jul 1999 06:05:24 GMT >Thorfinn <thorfinn@netizen.com.au> wrote: >>works for me... Yes, possibly that should be: >> >>References: thorfinn[^@ ]*@[^@ ]*tertius\.net\.au[^@ ]*> +<[^>]+> +<[^>]+> *$ >> > >OK.. seems to work, although it seems to do 4 references... > No.. doesn't work, looking closer. for example: doesn't pick References: <3783FCED.3411@mq.edu.au> <slrn7o8dnn.d12.zebee@zipper.zip.com.au> doesn't pick References: <3783FCED.3411@mq.edu.au> <slrn7o8dnn.d12.zebee@zipper.zip.com.au> <3784466C.A9E@mq.edu.au> does pick References: <3783FCED.3411@mq.edu.au> <slrn7o8dnn.d12.zebee@zipper.zip.com.au> <3784466C.A9E@mq.edu.au> <01bec3ed$214b48c0$77a0868b@shannon> doesn't pick: References: <931589178.22704@estelle.paradise.net.nz> <3788B41A.C5A@ar.com.au> <slrn7offhf.nil.zebee@zipper.zip.com.au> does pick References: <931589178.22704@estelle.paradise.net.nz> <3788B41A.C5A@ar.com.au> <slrn7offhf.nil.zebee@zipper.zip.com.au> <3788abe8@nap-ns1> <slrn7oi523.v8v.zebee@zipper.zip.com.au> So looks like it's *only* getting stuff 3 back... Zebee
Re: [slrn] scornig by reference
Author: John E. Davis
Date: Fri, 16 Jul 1999 00:00
Date: Fri, 16 Jul 1999 00:00
18 lines
1232 bytes
1232 bytes
On 14 Jul 1999 <xxx> <xxx> <xxxzebee@> 21:50:31 GMT, Zebee Johnstone <zebee@zip.com.au>
wrote:
>How can I tell slrn to only score it if the regexp is say in
>the first 3 reference items?
Try:
% zebee in first three references
Score: 100
References: ^[^>]+>?[^>]+>?[^>]+zebee
% zebee in the last three references
Score: 200
References: zebee[^>]+>?[^>]+>?[^>]+>$
--John
Re: The X-Face Header (was Re: [slrn] scornig by reference)
Author: Curt Welch
Date: Mon, 19 Jul 1999 00:00
Date: Mon, 19 Jul 1999 00:00
30 lines
2173 bytes
2173 bytes
adamb@lull.org (Adam Bailey) wrote: > Ovid <enid@enid.moc> wrote: > > >On Fri, 16 Jul 1999 10:21:07 -0400, planb@newsreaders.com (J. Moreno) > >wrote: > -snip- > >> X-Face: 48Sy^\</dKZe1J<x|w^od|[iJ}v*!!%."nNxwca8S2[}H-$<)+4]aq(v<;)uv > >> :jQ5(aeN*L~ayLVWcoPoFtB7M7v}N,+YkX*__,I8RqhT > > > >A bit off topic, but may I ask, what is ^ this header for? I've never > >seen its kind before. > > It's the coding for a small bitmapped picture that can be displayed with > the article. A number of Mac newsreaders support this, as does gnus. To > the best of my knowledge, no other newsreader currently supports them. > See <ftp://ftp.cs.indiana.edu/pub/faces/index.html> for more details. NewsReader.Com supports it. You can see what the article in quesiton (and the x-face) looks like using a free demo account. Go to: http://newsreader.com/news/news.software.readers/3582 And type in a user name of "demo" and make up any 5 character or more password. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
The X-Face Header (was Re: [slrn] scornig by reference)
Author: Adam Bailey
Date: Mon, 19 Jul 1999 00:00
Date: Mon, 19 Jul 1999 00:00
22 lines
1598 bytes
1598 bytes
Ovid <enid@enid.moc> wrote: >On Fri, 16 Jul 1999 10:21:07 -0400, planb@newsreaders.com (J. Moreno) >wrote: -snip- >> X-Face: 48Sy^\</dKZe1J<x|w^od|[iJ}v*!!%."nNxwca8S2[}H-$<)+4]aq(v<;)uv >> :jQ5(aeN*L~ayLVWcoPoFtB7M7v}N,+YkX*__,I8RqhT > >A bit off topic, but may I ask, what is ^ this header for? I've never >seen its kind before. It's the coding for a small bitmapped picture that can be displayed with the article. A number of Mac newsreaders support this, as does gnus. To the best of my knowledge, no other newsreader currently supports them. See <ftp://ftp.cs.indiana.edu/pub/faces/index.html> for more details. -- Adam Bailey | Chicago, Illinois adamb@lull.org | Finger/Web for PGP adamkb@aol.com | http://www.lull.org/adam/
Re: The X-Face Header (was Re: [slrn] scornig by reference)
Author: J. Moreno
Date: Mon, 19 Jul 1999 00:00
Date: Mon, 19 Jul 1999 00:00
14 lines
1503 bytes
1503 bytes
Curt Welch <curt@kcwc.com> wrote: > joemac@optonline.SPAMBLOCKnet.invalid (Joe Mac) wrote: > > > Is there a spec somewhere for this? Didn't see one at that site. > > There's a spec written in C :). Isn't that the best kind? -- John Moreno
Re: The X-Face Header (was Re: [slrn] scornig by reference)
Author: Vadim Zeitlin
Date: Wed, 21 Jul 1999 00:00
Date: Wed, 21 Jul 1999 00:00
14 lines
1815 bytes
1815 bytes
On 19 Jul 1999 16:27:46 GMT, Adam Bailey <adamb@lull.org> wrote: >It's the coding for a small bitmapped picture that can be displayed with the >article. A number of Mac newsreaders support this, as does gnus. To the best >of my knowledge, no other newsreader currently supports them. See ><ftp://ftp.cs.indiana.edu/pub/faces/index.html> for more details. Not a newsreader, stritly speaking, but Mahogany (http://www.phy.hw.ac.uk/~karsten/M/) does support them too. Another nice MUA for X11, XFMail, supports them too but it has no support for NNTP whatsoever. Regards, VZ
Re: [slrn] scornig by reference
Author: Martin Wickman
Date: Wed, 28 Jul 1999 00:00
Date: Wed, 28 Jul 1999 00:00
18 lines
1624 bytes
1624 bytes
On Fri, 16 Jul 1999 08:15:43 GMT, Electric Cowboy <Electric_Cowboy@yahoo.moc> wrote: >On 16 Jul 1999 02:55:19 GMT, thorfinn@netizen.com.au (Thorfinn) wrote: > >> Now for a detailed explanation of the RE... [chop] >An excellent description of the regexp capability. Question: Is this >from the Slrn, S-Lang docs, or your creation? To be archived. On a sidenote, if you want to learn more about regexps I would recommend the book "Mastering Regular Expressions" from O'Reilly. It really is a masterpiece. Quite funny to read as well (believe it or not :-) --
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