[antispam-f] Re: G T R L format spam

  • From: Harriet Bazley <lists@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
  • To: antispam@xxxxxxxxxxxxx
  • Date: Fri, 10 May 2013 14:02:41 +0100

On 8 May 2013 as I do recall,
          Dave Higton  wrote:

> On 2013-05-08, Harriet Bazley wrote:
>
> > I don't know if anyone else if being afflicted by stock-market-promotion
> > spam advertising the mysterious GTRL - samples:

[snip]


> > DEF FN@GTRL
> > LOCAL start%, end%,sub$,n%,len%,line$
> >   REM search for letters G T R L, poss. separated by space or punctuation
[snip]

> >   FOR n%=1 TO len%
> >     sub$=MID$(line$,start%+n%,1)
> >     IF INSTR("GTRL _.'",sub$)=0 THEN n%=100
> >   NEXT n%

[snip]

>
> How about removing all spaces and underscores, then searching for the
> substring "GTRL"?
>

I was trying to avoid a lot of (slow) string-slicing by narrowing things
down first... you could of course simply run the FOR-NEXT loop over
every letter of every body text line of every incoming message!

-- 
Harriet Bazley                     ==  Loyaulte me lie ==

The only rose without thorns is friendship.

Other related posts: