🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: demon.ip.developers
Article #739

Re: SMALLNET.EXE, HTTP command extension; & Killfile question

#739
From: Peter Disdale
Date: Thu, 14 Nov 1996 00:00
55 lines
2826 bytes
In article <847905832snz@alquds.demon.co.uk>
           shakib@alquds.demon.co.uk "Shakib Otaqui" writes:

> On Saturday, in article <847543433snz@wash.demon.co.uk>
>      john@wash.demon.co.uk "John Washington" wrote:
> ...
> JW> On various occasions, too numerous to list, in articles whose
> JW>         message IDs are too long for my eidetic memory, people
> JW>         have written things like:
> JW>
> JW> > >  Wouldn't it be nice to have wildcards in mail kill files...
> JW> ...
> JW> Well, that fix also is in this version.  :-)
> 
> 
>     Many thanks for this, John.  It's much needed and long overdue.

Seconded!
> 
>     Any ideas on the best way to implement it?  Seeing the many
>     variations in the spam I've received in the past I've used, for
>     example, "*emailsrus.com*" (without the quotes).
> 
>     Would this be better as just "*emailsrus*" and does one have to

Probably - the less there is to match the better, and the 
trailing '*' matches anything so terminates the matching loop.

>     worry about case sensitivity and also have "*EMAILSRUS*"?

The wildmat() function is case-sensitive, but fortunately the
address string that gets passed to it has already been folded 
to lower case earlier in smtpserv() so you're OK with the first
version.  Better than having to use "*[Ee][Mm][Aa][Ii].....*" :)
> 
>     Does anyone have any idea as to the point when the mailkill file
>     gets big enough to seriously affect performance?

I'm sure someone has!  Matching here is potentially much less 
work than matching each entry in one's news kill file against
each news header line, so for similarly sized kill files I'd
guess the performance hit would be minimal.
> 
>     Finally, does ka9q keep a record of bounced mail anywhere?  I've
>     looked through mail.log and found nothing there.

You've probably not bounced any mail then :) or :( depending
on your point of view.  Otherwise there would be an entry like

   rejected: from: xxxxx

At least that's my reading of ka9q's smtp server code.
-- 
Pete
Technical Details
Message-ID: <848005203snz@pdlmail.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <846692592snz@bobsh.demon.co.uk> <847543433snz@wash.demon.co.uk> <847905832snz@alquds.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bb05,2dcae2933831a457
X-Google-Attributes: gid10bb05,public
X-Google-Thread: fb525,2dcae2933831a457
X-Google-Attributes: gidfb525,public
From: Pete@pdlmail.demon.co.uk (Peter Disdale)
Subject: Re: SMALLNET.EXE, HTTP command extension; & Killfile question
Date: 1996/11/14
Message-ID: <848005203snz@pdlmail.demon.co.uk>
X-Deja-AN: 196644069
references: <846692592snz@bobsh.demon.co.uk> <847543433snz@wash.demon.co.uk> <847905832snz@alquds.demon.co.uk>
x-mail2news-user: Pete@pdlmail.demon.co.uk
x-mail2news-path: pdlmail.demon.co.uk
organization: Papa Delta Limited
reply-to: pete@pdlmail.demon.co.uk
newsgroups: demon.ip.developers,demon.ip.support.pc