🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: demon.ip.developers
Article #722

Killfile question !

#722
From: Nick Leverton
Date: Fri, 01 Nov 1996 00:00
32 lines
1680 bytes
Ok, here's an obscure one for y'all ...

I put a line in my NNTP killfile as follows:
    Subject: *[ _-]LOOT[ _-]*rail*
wanting to catch "lootrail", "loot-rail", "loot_rail" and "loot rail"
and similar combinations (if you read misc.transport.urban-transit
you'll understand).

But it also catches a whole lot more.  Setting nntp trace to 3 shows
me that it also kills stuff like:

    Subject: Re: Poly marriage contract
    Subject: Re: More Junk Email
    Subject: Re: "Name of a dog! Rover

Looking at the code for wildmat(), I guess it is getting confused about
the hyphen and imagining it is part of a character range.  A hyphen as
first or last in the string ought to be treated as a literal, but
wildmat doesn't conform to this convention.

The line in wildmat.c, case '[', that says

    if(*p == '-' ? *s <= *++p && *s >= last : *s == *p)
	matched = TRUE;

is the one in error.  I was going to suggest a correction but I'm having
trouble in coming up with one as efficient as KA9Q standard !  It's not
too hard, obviously, to do by brute force of code, but I'd like to keep
the memory requirements down in any fix ...

Nick
Technical Details
Message-ID: <846896475snx@warren.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bb05,fdf8ccd8b84c85b1,start
X-Google-Attributes: gid10bb05,public
From: leveret@warren.demon.co.uk (Nick Leverton)
Subject: Killfile question !
Date: 1996/11/01
Message-ID: <846896475snx@warren.demon.co.uk>
X-Deja-AN: 193726471
x-mail2news-path: bath.mail.pipex.net!leveret.rb.icl.co.uk
x-mail2news-user: leveret@warren.demon.co.uk
organization: Indexed; Access: Random.
newsgroups: demon.ip.developers
x-mailer: cppnews $Revision: 1.43 $