🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #22505

Re: Long Newsgroups

#22505
From: bill davidsen
Date: Mon, 20 Oct 1997 00:00
40 lines
2004 bytes
In article <35.26689.2403@asacomp.com>,
Jeff Binkley <jeff.binkley@asacomp.com> wrote:

| Can someone repost the patch or point to where it is at ?  I seem to have
| missed it the first time through.

In the control/newgroup script, you can uncomment and add:
================================================================
#### Simple check for a bork-style group. Uncomment to stop newgroups 
#### with names deeper than 7 levels being created.

ELEMS=`echo "$1" | awk -F. '{print NF}'`
if [ $ELEMS -gt 7 ]; then
    ${WRITELOG} ${LOGFILE} "Too many elements in newsgroup name by
${FROM}" <${ARTICLE}
    exit 1
fi

#### simple check for max overall group length - set size to your preference

MaxGroupNameLength=100
NAMELEN=`echo "$1" | wc -c`
if [ $NAMELEN -gt $MaxGroupNameLength ]; then
  ${WRITELOG} ${LOGFILE} "newsgroup name too long by ${FROM} <
${ARTICLE}
  exit 1
fi
================================================================

Note: this is not "instead of" and of the security patches, etc,
just a quick hack which can be applied to a running system.
--
    bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
The net serves four of the five physical senses. You can get sight, and
sound, and to a limited extent tactile feedback. No one would deny that
some portions of the net smell, but I see no signs that taste will ever
come to the net.  -me

Technical Details
Message-ID: <62g82n$27i8$1@newssvr03-int.news.prodigy.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <35.26689.2403@asacomp.com>

Show Full Headers
Complete Article Headers
Message-ID: <62g82n$27i8$1@newssvr03-int.news.prodigy.com>
Subject: Re: Long Newsgroups
Date: Mon, 20 Oct 1997 00:00:00 +0000
From: davidsen@tmr.com (bill davidsen)
References: <35.26689.2403@asacomp.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 282024277
Organization: TMR Associates, Schenectady NY
Newsgroups: news.software.nntp
Originator: davidsen@darkstar.prodigy.com