Article View: news.software.readers
Article #201106Re: [Xnews/Hamster] Multiple lookback regex question
From: Peter J Ross
Date: Mon, 25 Jun 2007 14:36
Date: Mon, 25 Jun 2007 14:36
47 lines
2576 bytes
2576 bytes
In news.software.readers on Mon, 25 Jun 2007 02:21:46 -0000, Ted S.
<fedya@bestweb.spam> wrote:
> I get a lot of spam that's addressed to random addresses at my ISP,
I assume you mean "/from/ random addresses" here.
> so
> I'd like to kill them using a negative lookback assertion. The problem
> is, my parents and I use the same ISP, and I get emails from, say, Mom,
> that are addressed to both Dad and me. So, I can't just use:
>
> Kill() From: {(?<!fedya)@bestweb.net},
>
> because it might kill stuff addressed to Mom or Dad.
>
> I tried
>
> Kill() From: {(?<!fedya|mom|dad)@bestweb.net}
>
> (actually, with their real email addresses, but I don't want to give
> those out), but that didn't work.
>
> Any idea how to do it?
Your PCRE syntax looks correct to me.
Is it possible that "kill" is case-sensitive in Hamster, or that the
PCRE library is too old to support look-behinds?
But I don't see why you need look-behind stuff. Wouldn't this pair of
rules achieve what you want?
=load() From: {(fedya|mom|dad)@bestweb\.net}
kill() From: {@bestweb\.net}
However you do it, it seems to me that there's a big risk of losing
genuine emails - e.g. from your ISP's admins.
> I had it in the killfile in my old hard-drive,
> but that died and I haven't been able to access it. (And that was a file
> that changed so often that I didn't back it up....)
That's a reason for backing up *more often*!
--
PJR :-)
Technical Details
Message-ID:
<slrnf7vknp.vb9.pjr@pjr.gotdns.org>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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!indigo.octanews.net!authen.yellow.readfreenews.net.POSTED!not-for-mailReferences:
<Xns9959DF8A81A68fedyabestwebnet@127.0.0.1>Show Full Headers
Complete Article Headers
Message-ID: <slrnf7vknp.vb9.pjr@pjr.gotdns.org> Subject: Re: [Xnews/Hamster] Multiple lookback regex question Date: Mon, 25 Jun 2007 14:36:41 +0000 From: Peter J Ross <pjr@example.invalid> References: <Xns9959DF8A81A68fedyabestwebnet@127.0.0.1> 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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!indigo.octanews.net!authen.yellow.readfreenews.net.POSTED!not-for-mail Newsgroups: news.software.readers Organization: none Reply-To: pjr.spam@gmail.com User-Agent: slrn/0.9.8.1pl2 (Debian) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 47 NNTP-Posting-Date: 25 Jun 2007 09:36:41 CDT X-Trace: DXC=VSnATFW1AgG`anI7E:DI\@]AGWjF5PjPI465Ue@WB_5O7IZTXEMoQdF26Z<EbT:a\E2XQX54M@PfBSK[_AMWe1nDOJcW=TG4:2K X-Original-Bytes: 2257