🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #19416

Re: Filtering message body (was Re: Posting sux!! so does INN)

#19416
From: Andrew Gierth
Date: Sun, 20 Jul 1997 00:00
19 lines
1342 bytes
>>>>> "Jeff" == Jeff Garzik <jeff.garzik@spinne.com> writes:

 Jeff> To drop no-body messages, you would just
 Jeff> need to amend the Perl filter to include

 Jeff> 	"Blank message rejected" if ($hdr{"__BODY__"} = /^\s*$/m);

Ahemm. I don't think that means what you think it means....

Use 
     if ($hdr{"__BODY__"} =~ /^\s*$/s);

instead, unless you want to lose every article containing a blank line.

-- 
Andrew.

Technical Details
Message-ID: <87k9imc745.fsf@erlenstar.demon.co.uk>
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: <33d0477a.8926553@code.ripco.com> <slrn5t1oii.nml.streiner@lurch.bv.sgi.net> <000033D150E0.NO_UCE@mauve.demon.co.uk> <33D1597E.6F89575E@spinne.com>

Show Full Headers
Complete Article Headers
Message-ID: <87k9imc745.fsf@erlenstar.demon.co.uk>
Subject: Re: Filtering message body (was Re: Posting sux!! so does INN)
Date: Sun, 20 Jul 1997 00:00:00 +0000
From: Andrew Gierth <andrew@erlenstar.demon.co.uk>
References: <33d0477a.8926553@code.ripco.com> <slrn5t1oii.nml.streiner@lurch.bv.sgi.net> <000033D150E0.NO_UCE@mauve.demon.co.uk> <33D1597E.6F89575E@spinne.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: 257828318
X-NNTP-Posting-Host: erlenstar.demon.co.uk [194.222.144.22]
Supersedes: <87n2nic777.fsf@erlenstar.demon.co.uk>
X-Mayan-Date: Long count = 12.19.4.6.5; tzolkin = 11 Chicchan; haab = 3 Xul
Organization: disorganised
X-Attribution: AG
Newsgroups: news.software.nntp