🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #234863

Re: [slrn] Can I make a rule that will auto-ignore all follow-ups to a certain author?

#234863
From: John E. Davis
Date: Fri, 31 Jul 2009 04:35
38 lines
2625 bytes
On Fri, 31 Jul 2009 09:00:20 +1000, Troy Piggins <usenet@piggo.com>
wrote:
> Upon entering the group it does take some time going through all
> the articles to add them to the scorefile.  And I'm running a
> local leafnode server.  Wonder how sluggish it'd be on dialup and
> a remote news server.

I suspect that it is because it is overly aggressive in deleting
perfectly good email addresses.  You might see some improvement by
using the onigurama or pcre regexp modules.  They will allow you to
use a precompiled regular expresson.  Also, the REs themselves should
be rewritten to limit backtracking.  For example,

   "[^ ]+ +[^ ]+ +<.+@.+>"

is equivalent to:

   "[^ ]+ +[^ ]+ +<[^@]+@[^>]+>"

And

   ".+@.+ +([^ ]+ [^ ]+.+)"

is almost equivalent to

   ".@[^ ]+ +([^ )]+ [^ )]+[^)]+)"

except that the latter form does not permit @ to be followed by a space.

Finally, I suspect that these REs were designed to check the syntax of
the email addresses.  But as pointed out by Ralf, these REs are not
enough because they fail to match perfectly valid email addresses.  If
this is the intent then it would probably be better to make the
slrn_parse_rfc2822_addr function available to the interpreter.  In
fact, the code is already in interp.c, but it is commented-out.

Thanks,
--John
Technical Details
Message-ID: <slrnh74t48.4ch.jed@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail
References: <guhtt9$82j$1@news.motzarella.org> <slrnh0p4lk.9q2.catwheezel@ID-107770.user.individual.net> <slrnh6sm2b.be4.ShadowTek@desktop.localdomain> <20090729080451@usenet.piggo.com> <slrnh6v215.m8d.ShadowTek@desktop.localdomain> <20090729101510@usenet.piggo.com> <slrnh6vnoo.8ce.ShadowTek@desktop.localdomain> <slrnh73i74.imu.jed@aluche.mit.edu> <20090731083455@usenet.piggo.com> <slrnh749g4.qr1.usenet@news.piggo.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnh74t48.4ch.jed@aluche.mit.edu>
Subject: Re: [slrn] Can I make a rule that will auto-ignore all follow-ups to a certain author?
Date: Fri, 31 Jul 2009 04:35:20 +0000
From: "John E. Davis" <jed@jedsoft.org>
References: <guhtt9$82j$1@news.motzarella.org> <slrnh0p4lk.9q2.catwheezel@ID-107770.user.individual.net> <slrnh6sm2b.be4.ShadowTek@desktop.localdomain> <20090729080451@usenet.piggo.com> <slrnh6v215.m8d.ShadowTek@desktop.localdomain> <20090729101510@usenet.piggo.com> <slrnh6vnoo.8ce.ShadowTek@desktop.localdomain> <slrnh73i74.imu.jed@aluche.mit.edu> <20090731083455@usenet.piggo.com> <slrnh749g4.qr1.usenet@news.piggo.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail
Newsgroups: news.software.readers
Reply-To: davis@space.mit.edu
User-Agent: slrn/pre1.0.0-11 (Linux)
Lines: 38
NNTP-Posting-Host: ALUCHE.MIT.EDU
X-Trace: 1249014920 senator-bedfellow.mit.edu 498 18.75.2.45