🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
19 messages
19 total messages Started by Ted S. Mon, 25 Jun 2007 02:21
[Xnews/Hamster] Multiple lookback regex question
#201097
Author: Ted S.
Date: Mon, 25 Jun 2007 02:21
23 lines
1619 bytes
I get a lot of spam that's addressed to random addresses at my ISP, 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?  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....)

--
Ted S.
fedya at bestweb dot net
Re: [Xnews/Hamster] Multiple lookback regex question
#201099
Author: Mike Dee
Date: Mon, 25 Jun 2007 04:27
17 lines
2040 bytes
"Ted S." <fedya@bestweb.spam> wrote:

[...]
> 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.
[...]

Perhaps try something like this in Hamster:

=-9999 From: "@bestweb.net" - "fedya" - "mom" - "dad"

-- 
dee
Re: [Xnews/Hamster] Multiple lookback regex question
#201106
Author: Peter J Ross
Date: Mon, 25 Jun 2007 14:36
47 lines
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 :-)
Re: [Xnews/Hamster] Multiple lookback regex question
#201117
Author: Tech Zero
Date: Mon, 25 Jun 2007 16:13
14 lines
1756 bytes
Reality folded in on itself, and somewhere the following words from
"Mike Dee" appeared in history:

> Perhaps try something like this in Hamster:
>
> =-9999 From: "@bestweb.net" - "fedya" - "mom" - "dad"

He's asking about a Hamster email filter...

-- 
__ __| |            __ __|           |    __  /
   |     \    -_)      |   -_)   _|    \     /    -_)   _| _ \
  _|  _| _| \___|     _| \___| \__| _| _| ____| \___| _| \___/
Losing quality sleep helping others on-line since 1997...
Re: [Xnews/Hamster] Multiple lookback regex question
#201118
Author: Ted S.
Date: Mon, 25 Jun 2007 16:13
17 lines
1410 bytes
Peter J Ross <pjr@example.invalid> wrote in 
news:slrnf7vknp.vb9.pjr@pjr.gotdns.org:

> 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.
> 

No, I mean *To*.  I get spams that have addresses such as 
"forum@bestweb.net" or "feldman@bestweb.net" in the To: header.

-- 
Ted S.
fedya at bestweb dot net
Re: [Xnews/Hamster] Multiple lookback regex question
#201127
Author: Ted S.
Date: Mon, 25 Jun 2007 16:14
12 lines
1215 bytes
Mike Dee <mikedee@emteedee.invalid> wrote in news:Xns995A930B5C493emteedee@
194.177.96.26:

> Perhaps try something like this in Hamster:
> 
> =-9999 From: "@bestweb.net" - "fedya" - "mom" - "dad"

AFAIK, that sort of scoring doesn't work in mails in Hamster.

-- 
Ted S.
fedya at bestweb dot net
Re: [Xnews/Hamster] Multiple lookback regex question
#201119
Author: Tech Zero
Date: Mon, 25 Jun 2007 16:34
28 lines
2590 bytes
Reality folded in on itself, and somewhere the following words from
"Ted S." appeared in history:

> I get a lot of spam that's addressed to random addresses at my
> ISP, 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.


That's always the problem when tring use one account for multiple
people. Check with your ISP/Host to see if they offer multiple accounts
(not alaises) under your current plan and get your own address.

If I am guessing correctly you're using Hamster as the "family" email
server? If so, your bets option would be to just acept all email and
recreate you origonal filters based on the any new spam.

The kind of filtering you are trying, NAME EXISTS, is best done by more
powerful 'nix servers, in which it is (ususally) a single server
setting. Your ISP/Host sould be able to do this for you, or at least
have the option to set up proper email accounts. The "everything posted
to domain" email dump went out with Swen, the first major virus spam.

-- 
__ __| |            __ __|           |    __  /
   |     \    -_)      |   -_)   _|    \     /    -_)   _| _ \
  _|  _| _| \___|     _| \___| \__| _| _| ____| \___| _| \___/
Losing quality sleep helping others on-line since 1997...
Re: [Xnews/Hamster] Multiple lookback regex question
#201120
Author: Peter J Ross
Date: Mon, 25 Jun 2007 18:27
28 lines
2130 bytes
In news.software.readers on Mon, 25 Jun 2007 16:13:59 -0000, Ted S.
<fedya@bestweb.spam> wrote:

> Peter J Ross <pjr@example.invalid> wrote in 
> news:slrnf7vknp.vb9.pjr@pjr.gotdns.org:
>
>> 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.
>> 
>
> No, I mean *To*.  I get spams that have addresses such as 
> "forum@bestweb.net" or "feldman@bestweb.net" in the To: header.

You used "From" in your examples of what you'd tried.

I don't have a solution for "To", partly because "CC", "BCC" and
"Envelope-To" introduce complications unknown in Usenet filtering.

I suggest asking your question in the hamster.* newsgroups. I don't
think NSR is likely to help you much beyond saying, as I said, that
your PCRE syntax is correct.

-- 
PJR :-)
Re: [Xnews/Hamster] Multiple lookback regex question
#201122
Author: Raphael Blanchard
Date: Mon, 25 Jun 2007 19:23
29 lines
2326 bytes
Ted S. wrote in news:Xns995A7C2AC5D07fedyabestwebnet@127.0.0.1:

> Peter J Ross <pjr@example.invalid> wrote in 
> news:slrnf7vknp.vb9.pjr@pjr.gotdns.org:
>
>> 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.
>>
>
> No, I mean *To*.  I get spams that have addresses such as 
> "forum@bestweb.net" or "feldman@bestweb.net" in the To: header.

Try:

Ignore() To: * -{<youraddress@bestweb\.net>}

and than if it works like you want try:

Kill() To: * -{<r_b@(lavabit|inbox|wawamail)\.com>}



-- 
Raphael Blanchard, r_b@lavabit.com, icq uin: 373524757
  np: (Winamp is not active ;-)
Re: [Xnews/Hamster] Multiple lookback regex question
#201124
Author: Ted S.
Date: Mon, 25 Jun 2007 20:26
32 lines
2524 bytes
Tech Zero <uselesspam@dragonfur.ca> wrote in 
news:Xns995A6B8A3F069AlphaTwo@draken.dragonfur.ca:

> Reality folded in on itself, and somewhere the following words from
> "Ted S." appeared in history:
> 
>> I get a lot of spam that's addressed to random addresses at my
>> ISP, 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.
> 
> 
> That's always the problem when tring use one account for multiple
> people. Check with your ISP/Host to see if they offer multiple accounts
> (not alaises) under your current plan and get your own address.

No; we have separate addresses.  It would be just like two complete 
strangers having accounts at aol.com or earthlink.com or somesuch.  
Suppose I were fedya@domain.com, and had a friend who was at 
johnsmith@domain.com, and wanted to be able to receieve emails with both 
emails in the To: header.   (Which is usually what it is: my mom sends 
crummy jokes to me, dad, my brothers and sisters and her 97 friends, that 
I've already received from her half a dozen times, but if I send them 
straight to the bitbucket and she knew I were doing that, she'd be rather 
peeved.)  I need to be able to receive such emails, but not those sent to 
jimjones@domain.com or billbrown@domain.com.

Have I made myself clearer?

-- 
Ted S.
fedya at bestweb dot net
Re: [Xnews/Hamster] Multiple lookback regex question
#201125
Author: »Q«
Date: Mon, 25 Jun 2007 22:50
15 lines
1902 bytes
In <news:slrnf7vknp.vb9.pjr@pjr.gotdns.org>,
Peter J Ross <pjr@example.invalid> wrote:

>Is it possible that "kill" is case-sensitive in Hamster, or that the
>PCRE library is too old to support look-behinds?

I'm sure it supports look-behinds, but it may be so old it only
supports fixed-length branches for them.

The Hamster groups could sort this out.  To avoid look-behinds entirely,
another strategy would be to whitelist Mom and Dad (IIRC, with a load()
filter) and then kill all others from bestweb.

-- 
»Q«
Re: [Xnews/Hamster] Multiple lookback regex question
#201129
Author: Ted S.
Date: Tue, 26 Jun 2007 02:14
18 lines
1600 bytes
»Q« <boxcars@gmx.net> wrote in news:0ft5l4-4mj.ln1@goldry.remarqs.net:

> In <news:slrnf7vknp.vb9.pjr@pjr.gotdns.org>,
> Peter J Ross <pjr@example.invalid> wrote:
> 
>>Is it possible that "kill" is case-sensitive in Hamster, or that the
>>PCRE library is too old to support look-behinds?
> 
> I'm sure it supports look-behinds, but it may be so old it only
> supports fixed-length branches for them.

The thing is, I had done this before, so I know it's possible, but I had 
to get a new computer when my hard drive died, and I don't remember how I 
did it.  :-|

-- 
Ted S.
fedya at bestweb dot net
Re: [Xnews/Hamster] Multiple lookback regex question
#201131
Author: Andy Rodemann
Date: Tue, 26 Jun 2007 04:45
19 lines
1841 bytes
Hallo zusammen,

"Ted S." <fedya@bestweb.spam> schrieb:

>> Perhaps try something like this in Hamster:
>>
>> =-9999 From: "@bestweb.net" - "fedya" - "mom" - "dad"
>
> AFAIK, that sort of scoring doesn't work in mails in Hamster 

Scoring does work in hamster, also for mails, but the syntax is slightly 
different (update to the newest version, I don't remember, when scoring 
for mails was implemented):

AddScore(-1) From: "@bestweb.net" - "fedya" - "mom" - "dad"
ignore() Score: %<0
-- 
tschüss
andy r.
Re: [Xnews/Hamster] Multiple lookback regex question
#201133
Author: Tech Zero
Date: Tue, 26 Jun 2007 06:35
45 lines
3329 bytes
Reality folded in on itself, and somewhere the following words from
"Ted S." appeared in history:

>> That's always the problem when tring use one account for multiple
>> people. Check with your ISP/Host to see if they offer multiple
>> accounts (not alaises) under your current plan and get your own
>> address.
>
> No; we have separate addresses.

Not always the same thing...

I have five address setup on one of my domain accounts, of which four
are only aliases. You could call them separate address, but they are
not. All email sent to any of those five addresses are dropped into
one "box" and are treated as a single email account on the server,
and retrieved as such by my client software.

> Suppose I were fedya@domain.com, and had a friend who was at
> johnsmith@domain.com, and wanted to be able to receieve emails
> with both emails in the To: header. (Which is usually what it
> is: my mom sends crummy jokes to me, dad, my brothers and sisters
> and her 97 friends, that I've already received from her half a
> dozen times, but if I send them straight to the bitbucket and
> she knew I were doing that, she'd be rather peeved.)

> I need to be able to receive such emails, but not those sent to
> jimjones@domain.com or billbrown@domain.com.
>
> Have I made myself clearer?

No, because a "fedya@domain.com" account should never get posts to
"jimjones@domain.com" or "billbrown@domain.com" in the first place,
that's not how a post Swen email systems should be setup.

If the posts you're trying to filter on are CC'd that's different,
a separate copy is sent to each recipient so there is no loss if you
just *bit bin it*. There is also no way for the sender to be sure you
even receive an email, let alone if you've read it.

-- 
__ __| |            __ __|           |    __  /
   |     \    -_)      |   -_)   _|    \     /    -_)   _| _ \
  _|  _| _| \___|     _| \___| \__| _| _| ____| \___| _| \___/
Losing quality sleep helping others on-line since 1997...
Re: [Xnews/Hamster] Multiple lookback regex question
#201136
Author: Raphael Blanchard
Date: Tue, 26 Jun 2007 08:37
14 lines
1937 bytes
Raphael Blanchard wrote in
news:250607.212327.nsr.3.Raphael@Blanchard.com: 

> Kill() To: * -{<r_b@(lavabit|inbox|wawamail)\.com>}

:)

Sorry, this line should look like this:

Kill() To: * -{<youraddress@bestweb\.net>}

-- 
Raphael Blanchard, r_b@lavabit.com, icq uin: 373524757
  np: (Winamp is not active ;-)
Re: [Xnews/Hamster] Multiple lookback regex question
#201138
Author: Frank Slootweg
Date: Tue, 26 Jun 2007 14:11
31 lines
2644 bytes
Tech Zero <uselesspam@dragonfur.ca> wrote:
> Reality folded in on itself, and somewhere the following words from
> "Ted S." appeared in history:
[deleted]
> > Suppose I were fedya@domain.com, and had a friend who was at
> > johnsmith@domain.com, and wanted to be able to receieve emails
> > with both emails in the To: header. (Which is usually what it
> > is: my mom sends crummy jokes to me, dad, my brothers and sisters
> > and her 97 friends, that I've already received from her half a
> > dozen times, but if I send them straight to the bitbucket and
> > she knew I were doing that, she'd be rather peeved.)
> 
> > I need to be able to receive such emails, but not those sent to
> > jimjones@domain.com or billbrown@domain.com.
> >
> > Have I made myself clearer?
> 
> No, because a "fedya@domain.com" account should never get posts to
> "jimjones@domain.com" or "billbrown@domain.com" in the first place,
> that's not how a post Swen email systems should be setup.

  The messages are obviously *sent* to "fedya@domain.com", otherwise he
wouldn't/couldn't receive them, but they are *'addressed'* to (for
example) "jimjones@domain.com". I.e. the *SMTP 'RCPT TO:' command* has
"fedya@domain.com", but the *To: or Cc: (and possibly even From:)
header* has "jimjones@domain.com".

  IOW, the *relevant SMTP envelope* contains "fedya@domain.com", but the
*irrelevant header* contains some other address.

[deleted]
Re: [Xnews/Hamster] Multiple lookback regex question
#201143
Author: Ted S.
Date: Tue, 26 Jun 2007 15:32
19 lines
1664 bytes
"Ted S." <fedya@bestweb.spam> wrote in 
news:Xns9959DF8A81A68fedyabestwebnet@127.0.0.1:

> I get a lot of spam that's addressed to random addresses at my ISP, 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}, 

Holy ****!  I just realized I've got a From: where I meant to have a To:  
No wonder my regex isn't working the way I intended!

God I feel stupid.  And yes, you can all go ahead and say you too feel 
I'm stupid.  ;-)

-- 
Ted S.
fedya at bestweb dot net
Re: [Xnews/Hamster] Multiple lookback regex question
#201144
Author: Ted S.
Date: Tue, 26 Jun 2007 15:32
33 lines
2338 bytes
Tech Zero <uselesspam@dragonfur.ca> wrote in 
news:Xns995B6049105AAlphaTwo@draken.dragonfur.ca:

> No, because a "fedya@domain.com" account should never get posts to
> "jimjones@domain.com" or "billbrown@domain.com" in the first place,
> that's not how a post Swen email systems should be setup.
> 
> If the posts you're trying to filter on are CC'd that's different,
> a separate copy is sent to each recipient so there is no loss if you
> just *bit bin it*. There is also no way for the sender to be sure you
> even receive an email, let alone if you've read it.

This is the point: they *are* CC'd (or, just as likely, there are 
multiple addresses in the To: field).  The emails are likely to have 
headers that read something like:

To: Ted <fedya@bestweb.***>,
   Dad <dad@bestweb.***>,
   John Smith <a@b.c>,

And so on for 50 lines.  (And in the body of the emails, you can see who 
all was sent the email the last eight or nine times it was forwarded, 
since all the headers are there....)

Don't tell me to tell Mom to format her ^$@%!% email application 
properly.  She had a fit when I told her the "It takes guts to say 
Jesus" virus was a hoax, and that perhaps she ought to check whether such 
virus warnings are a hoax before mindlessly forwarding the bogus 
warnings.

-- 
Ted S.
fedya at bestweb dot net
Re: [Xnews/Hamster] Multiple lookback regex question
#201195
Author: Tech Zero
Date: Fri, 29 Jun 2007 03:51
39 lines
2731 bytes
Reality folded in on itself, and somewhere the following words from
"Ted S." appeared in history:

> This is the point: they *are* CC'd (or, just as likely, there are
> multiple addresses in the To: field).  The emails are likely to
> have headers that read something like:

Finally, claification...

> To: Ted <fedya@bestweb.***>,
>     Dad <dad@bestweb.***>,
>    John Smith <a@b.c>,
>
> And so on for 50 lines.  (And in the body of the emails, you can
> see who all was sent the email the last eight or nine times it was
> forwarded, since all the headers are there....)

I would filter on the existance of more then one "@" in the message,
possibly with a whitelist for those CC'd messages you want.

Something like (not tested):

   =load() From: {(fedya|mom|dad)@bestweb\.net}
   kill() Any-Recipient: {(.+@){4}}

You could set it bulk sized, like 20 recipiants, ect...

   http://www.elbiah.de/hamster/doc/ref/filemailfilt.htm

> Don't tell me to tell Mom to format her ^$@%!% email application
> properly.

Wouldn't dream of it. We all have PARENTS...

-- 
__ __| |            __ __|           |    __  /
   |     \    -_)      |   -_)   _|    \     /    -_)   _| _ \
  _|  _| _| \___|     _| \___| \__| _| _| ____| \___| _| \___/
Losing quality sleep helping others on-line since 1997...
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