[antispam-f] Re: Odd rejection by @domaincaps

  • From: Dave Barnett <as10@xxxxxxxxxxxxxxxxx>
  • To: antispam@xxxxxxxxxxxxx
  • Date: Sat, 19 Apr 2008 21:50:33 +0100

In a recent message           Harriet Bazley 
<lists@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

> On 13 Apr 2008 as I do recall,
>           Dave Barnett  wrote:

>> It was quite correct.  The  "Delete From: @domaincaps" rule rejected
>> apparent spam with  "Subject: Delivery Status" .   The From: was
>> "From: <>".  Unexpected but logical, there is, however, a potential
>> for false positives.
>> 
> Hmm, I'm not sure about the logicality of it... I'd attempted to trap
> for that possibility with the test

> end$=FNgetdomain(D$)
> IF LEN(end$)<1 THEN =FALSE

> Unfortunately in this particular case FNgetdomain  returns "<" due to
> not being able to find an @ at all - I'd suggest adding a similar trap
> to FNgetdomain:

> DEF FNgetdomain(in$)
> LOCAL ptr%,domain$
> ptr%=INSTR(in$,"@")
> IF ptr%=0 THEN=""
> ...


> (Ideally one would throw an error at this point on the grounds that the
> function has been passed nonsense input, but in an AntiSpam context that
> wouldn't really help matters much - this seems the safest bet, given the
> other contexts I'm currently calling FNgetdomain in....)

As it has only happened once, best leave as is.  100% is ideal but 
don't spoil the very good test.


-- 
Dave
Keep GMT all year

Other related posts: