Thread View: news.software.readers
4 messages
4 total messages
Started by Tony Miller
Tue, 25 Apr 2000 00:00
[slrn] Scoring a 4 digit number on the end of a subject line.
Author: Tony Miller
Date: Tue, 25 Apr 2000 00:00
Date: Tue, 25 Apr 2000 00:00
13 lines
1133 bytes
1133 bytes
There has recently been a number of spams that put a random 4 digit number at the end of the subject line to foil the cancel bots. I'd like to know if anyone has ever successfully scored them out, and how did you do it? Thanks, -Tony -- Reliable, "eggable" Unix shell accounts. http://www.jtan.com/proshell/ cl00bie @ IRC - /server cookie.sorcery.net 9000, http://www.sorcery.net We welcome WebTV'ers - http://www.sorcery.net/help/index.html#WebTV
Re: [slrn] Scoring a 4 digit number on the end of a subject line.
Author: Sylvan Butler
Date: Tue, 25 Apr 2000 00:00
Date: Tue, 25 Apr 2000 00:00
37 lines
2282 bytes
2282 bytes
On Tue, 25 Apr 2000 14:40:57 GMT, Tony Miller <cl00bie@flame.org> wrote:
>There has recently been a number of spams that put a random 4 digit number
>at the end of the subject line to foil the cancel bots. I'd like to know
>if anyone has ever successfully scored them out, and how did you do it?
I use:
% lines ending with a number are typically spam
Score:: -9900
Expires: 6/1/2000
Subject: . [0-9]\{5,\}$
Subject: . [0-9]\{3,\}$
Score:: 9900
Expires: 6/1/2000
Subject: . 1998$
Subject: . 1999$
Subject: . 2000$
Subject: . 2001$
Notice I don't totally kill them, sometimes they are legitimate (talking
about a certain model number and such). I found I needed to add exceptions
for years (there is likely a better way of coding "and not" but this is
what I did). I also check for spaces preceding, because most but not
all of the spam has several spaces.
Now watch, because I posted these rules the spammers will modify their
spam software. :(
sdb
--
| Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
| Watch out for my e-mail address. Thank UCE. #### change ^ to @ #### |
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
"Don't Tread On Me!"
Re: [slrn] Scoring a 4 digit number on the end of a subject line.
Author: J. B. Moreno
Date: Tue, 25 Apr 2000 00:00
Date: Tue, 25 Apr 2000 00:00
14 lines
1409 bytes
1409 bytes
Tony Miller <cl00bie@flame.org> wrote: > There has recently been a number of spams that put a random 4 digit number > at the end of the subject line to foil the cancel bots. I'd like to know > if anyone has ever successfully scored them out, and how did you do it? Sure, use a regular expression that looks for 4 or more digits at the end of the subject. It might cause some problems with some binary groups, but other than that it'll work finen. -- John B. Moreno
Re: [slrn] Scoring a 4 digit number on the end of a subject line.
Author: Sylvan Butler
Date: Wed, 26 Apr 2000 00:00
Date: Wed, 26 Apr 2000 00:00
63 lines
3074 bytes
3074 bytes
On Wed, 26 Apr 2000 10:40:53 GMT, ras2 <removethis@gmx.net> wrote:
>On 25 Apr 2000 19:38:38 GMT, Sylvan Butler
><nospam+_no_Zs__0004@hpb13799z.zboi.hpz.com.invalid> wrote in
><slrn8gbtcp.rnj.nospam+_no_Zs__0004@hpb13799z.zboi.hpz.com.invalid>:
>>
>> I use:
>> % lines ending with a number are typically spam
>> Score:: -9900
>> Expires: 6/1/2000
>> Subject: . [0-9]\{5,\}$
>> Subject: . [0-9]\{3,\}$
>
>(should the "{}" really be escaped here?)
I think so. But I could very easily be wrong!
>> for years (there is likely a better way of coding "and not" but this is
>> what I did).
>
>Judging from a test I just made, you can use something like this:
>
>Score: -9900
> Subject: . [0-9]\{5,\}$
> ~Subject: . 1998$
> ~Subject: . 1999$
> ~Subject: . 2000$
> ~Subject: . 2001$
Ahh, yes. (But you don't need those cases there because years are only
4 digits, and 5+ digits won't match them. :)
>Score: -9900
> Subject: . [0-9]\{3,\}$
> ~Subject: . 1998$
> ~Subject: . 1999$
> ~Subject: . 2000$
> ~Subject: . 2001$
>
>In this case, this method gives far more lines in the scorefile for
>the same result, but it might be useful in some other context.
But since you don't need the check in the 5-digit case the lines end up
about the same.
>There must be a better way, but "\s" doesn't seem to work and I can't
>locate the description of S-Lang types I had.
Yeah, it seems like I found a better way once, but didn't go back and
update the old working rules. Perhaps a "\b" ?
My document from 1997 doesn't list such. I copied it from:
http://www.math.ohio-state.edu/~lahvak/software/slang/regexps.html
sdb
--
| Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
| Watch out for my e-mail address. Thank UCE. #### change ^ to @ #### |
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
"Don't Tread On Me!"
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