🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90424

Re: inn filtering question (and cleanfeed problem?)

#90424
From: Neodome Admin
Date: Fri, 09 Jun 2023 12:37
37 lines
2326 bytes
gof-cut-this-news@cut-this-chmurka.net.invalid (Adam W.) writes:

> Neodome Admin <admin@neodome.net> wrote:
>
>>> : begin 664 test
>>> : `
>>> : end
>> 
>> Try to do bigger file, at leat couple of lines long.
>
> It looks like it's triggered when the extension is .jpg.

I think it will be triggered when you'll try to post actual file, not
something that is 0 bytes long, because it's looking for actual
UU-encoded string. I might be wrong, though. 

> The most important issue is that MIME-encoded binaries are accepted...

I don't remember if I ever had issues with that, however, I always had
two more filters in filter_nnrpd.pl, I called them whitelisted headers
and blacklisted headers. "Blacklisted headers" were checks for any
headers that my server wouldn't allow, and "whitelisted headers" would
be headers that, if exist, should conform to some kind of regex. If you
don't want to see any kind of MIME messages with attachments, you can
try to "blacklist" any Content-Type header except of "text/plain", or,
perharps, you can "whitelist" Content-Type header that only says
"text/plain".

Take a look at "Perl Hooks" page:

<https://www.eyrie.org/~eagle/software/inn/docs/hook-perl.html>

Apparently, Content-Type is one of the "standard" headers that can be
processed by filter_innd.pl. As far as I know, absolute most of
MIME-conforming text messages would have "text/plain" string in
Content-Type header. Usually it's something like "text/plain;
charset=us-ascii".
Technical Details
Message-ID: <u5v6di$olh$1@neodome.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <u5sogj$ish$6$arnold@news.chmurka.net> <u5sp6u$n3c$2$arnold@news.chmurka.net> <u5ulef$t35$1@neodome.net> <u5v2hb$94m$1$arnold@news.chmurka.net>

Show Full Headers
Complete Article Headers
Message-ID: <u5v6di$olh$1@neodome.net>
Subject: Re: inn filtering question (and cleanfeed problem?)
Date: Fri, 09 Jun 2023 12:37:06 +0000
From: Neodome Admin <admin@neodome.net>
References: <u5sogj$ish$6$arnold@news.chmurka.net> <u5sp6u$n3c$2$arnold@news.chmurka.net> <u5ulef$t35$1@neodome.net> <u5v2hb$94m$1$arnold@news.chmurka.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: Neodome
Mime-Version: 1.0
Content-Type: text/plain
Injection-Date: Fri, 9 Jun 2023 12:37:06 -0000 (UTC)
Injection-Info: neodome.net; mail-complaints-to="abuse@neodome.net"
User-Agent: Gnus/5.13 (Gnus v5.13)