Article View: news.software.nntp
Article #80012Re: Cleanfeed - "body ()" rejections
From: Julien ÉLIE
Date: Sun, 11 Jan 2009 12:02
Date: Sun, 11 Jan 2009 12:02
43 lines
2894 bytes
2894 bytes
Hi Steve,
>>=> $1 doesn't seem to be set to anything. What I am seeing is "437
>> Body ()". Bad_Body is set to NULL (or whatever value is chosen if the
>> file doesn't exist in "read_hashes").
>
> That's interesting. So if bad_body (the file) doesn't exist, $Bad_Body
> is set to NULL and then matches articles that (presumably) have no
> payload or at least match an empty regex. I've applied a patch to svn
> that should fix this behaviour.
I also suffer from a similar problem here:
} elsif ($hdr{Control} =~ /^\s*(\w+)(?:\s+(.*))?/) {
my $control_type = $1;
my $control_group = $2;
return reject("$control_type with Supersedes header")
if $hdr{Supersedes};
return reject("Unwanted $1 message", 'Bad control message')
if $config{drop_useless_controls}
and $control_type =~ /^(?:sendsys|senduuname|version)$/;
return reject("Unwanted $1 message", 'Bad control message')
if $config{drop_ihave_sendme}
and $control_type =~ /^(?:ihave|sendme)$/;;
}
I receive "Unwanted message" instead of "Unwanted sendsys message"
for instance.
Maybe $control_type should be used instead of $1.
$control_group is not used (and may not be initialized too).
I have just tried to inject a few of these control messages to Usenet.
But they did not go very far!
--
Julien ÉLIE
« Je ne suis ni pour ni contre, bien au contraire ! » (Coluche)
Technical Details
Message-ID:
<gkcn4i$gpl$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.ecngs.de!ecngs!feeder2.ecngs.de!87.106.137.111.MISMATCH!feeder1.news.weretis.net!newsfeeder.dynfx.net!weretis.net!news.trigofacile.com!not-for-mailReferences:
<gjs7fc$s4a$1@snarked.org> <slrngm3pic.5c4.steve@news.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <gkcn4i$gpl$1@news.trigofacile.com> Subject: Re: Cleanfeed - "body ()" rejections Date: Sun, 11 Jan 2009 13:02:25 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <gjs7fc$s4a$1@snarked.org> <slrngm3pic.5c4.steve@news.mixmin.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.ecngs.de!ecngs!feeder2.ecngs.de!87.106.137.111.MISMATCH!feeder1.news.weretis.net!newsfeeder.dynfx.net!weretis.net!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 43 NNTP-Posting-Host: aaubervilliers-151-1-72-158.w81-48.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1231675347 17205 81.48.75.158 (11 Jan 2009 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Sun, 11 Jan 2009 12:02:27 +0000 (UTC) In-Reply-To: <slrngm3pic.5c4.steve@news.mixmin.net> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049