πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.admin.peering
Article #3816

Re: Intercept articles with MIME attachments

#3816
From: Ray Banana
Date: Mon, 05 Jan 2026 06:12
44 lines
2682 bytes
Thus spake "Roberto CORRADO" <i@secure.corradoroberto.it>
 
> """
> Message-ID: <10j82ju$go4$1@gatto.corradoroberto.it>
> """
>
> What should be block hook?
>
> """
> Content-Type: multipart/mixed; 
>  boundary="----=_Part_0_147797237.1767345596210"
> """
>
> if ($hdr{'Content-Type'} =~ /(multipart/mixed/) {
>     rval = "Article contains Multipurpose Internet Mail Extensions MIME NOT allowed";
>     }
>
> Do you consider this method correct and implementable?

Implementable, but not correct ;-)

A MIME message contains both a Content-Type: header and one or more
Content-Type: boundary markers in the body of the messages.

If you only look at the header, you will not be able to determine the
number and type of parts, thus bluntly rejecting all multipart/mixed
articles including articles declared as multipart/mixed, but containing
only a single text/plain part, which may be a bit strange, but still
permissible. I understand that newsreaders like pine or tin can be
configured to produce such articles.

Please see <c062aef9-ac4c-6f44-d64a-d0fc9f00b013@insomnia247.nl> for an
example.

Regarding the example you gave in your previous post, Eternal-September
did receive it and rejected it correctly as a binary attachment:

Jan  2 09:20:01 feeder innd: rejecting[perl]
<10j82ju$go4$1@gatto.corradoroberto.it> 439 Binary: binary attachment


-- 
ΠŸΡƒΜΡ‚Ρ–Π½ β€” хуйло́
https://www.eternal-september.org
Technical Details
Message-ID: <87o6n8egfi.fsf@raybanana.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!raybanana.dont-email.me!.POSTED!not-for-mail
References: <10jeit9$c8j$1@gatto.corradoroberto.it> <10jeo3r$jd9$1@gatto.corradoroberto.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!raybanana.dont-email.me!.POSTED!not-for-mail
From: Ray Banana <rayban@raybanana.net>
Newsgroups: news.admin.peering
Subject: Re: Intercept articles with MIME attachments
Date: Mon, 05 Jan 2026 07:12:33 +0100
Organization: A noiseless patient spider
Lines: 44
Message-ID: <87o6n8egfi.fsf@raybanana.net>
References: <10jeit9$c8j$1@gatto.corradoroberto.it>
	<10jeo3r$jd9$1@gatto.corradoroberto.it>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 05 Jan 2026 06:12:38 +0000 (UTC)
Injection-Info: raybanana.dont-email.me; posting-host="bc01745c3996d6430f9d239343e79312";
	logging-data="2742124"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+M7v3ebVTEsNYQ98FOcm1xA0tnJlWt6qk="
User-Agent: Plonkenlights
Cancel-Lock: sha1:qdLLNtE+mFSvV9lE3xFw8b62dDQ=
	sha1:8WN0kebcKBt9ddvzgX1kXZ9f7fY=
X-Attribution: Ray Banana