Article View: news.admin.peering
Article #3873Re: Intercept articles with MIME attachments
From: Roberto CORRADO
Date: Wed, 25 Feb 2026 15:30
Date: Wed, 25 Feb 2026 15:30
35 lines
2771 bytes
2771 bytes
"Ray Banana" wrote:
> 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.
I would have written this, do you think it's correct?
my $data = "";
if ($hdr{'Content-Type'} =~ /multipart\/mixed/i) {
# $data="1";
if ($body =~ /Content-Type:\stext\/plain/i && $body =~ /Content-Transfer-Encoding:\sbase64/i && $body =~ /Content-Disposition:\sattachment/i) {
$data="Article contains Multipurpose Internet Mail Extensions MIME NOT allowed";
} else {
if ($body =~ /Content-Type:\stext\/plain/i && $body =~ /Content-Transfer-Encoding:\sbase64/i && $body =~ /Content-Base/i) {
$data="Article contains Multipurpose Internet Mail Extensions MIME NOT allowed";
}
}
$rval = $data;
}
Thank you all for your support.
--
Roberto.
a simple web NR (without DB).
https://secure.corradoroberto.it/m9/usenet2/newsgroups.php?art_group=news.admin.peering&article_id=36856
Technical Details
Message-ID:
<10nn4i4$3p4$1@news.corradoroberto.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!.POSTED.desktop.corradoroberto.it!not-for-mailReferences:
<10jeit9$c8j$1@gatto.corradoroberto.it><10jeo3r$jd9$1@gatto.corradoroberto.it> <87o6n8egfi.fsf@raybanana.net>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!news.corradoroberto.it!.POSTED.desktop.corradoroberto.it!not-for-mail From: "Roberto CORRADO" <i@secure.corradoroberto.it> Newsgroups: news.admin.peering Subject: Re: Intercept articles with MIME attachments Date: Wed, 25 Feb 2026 16:30:15 +0100 Organization: NNTPD of domain: corradoroberto.it (for authenticated users) Lines: 35 Message-ID: <10nn4i4$3p4$1@news.corradoroberto.it> References: <10jeit9$c8j$1@gatto.corradoroberto.it><10jeo3r$jd9$1@gatto.corradoroberto.it> <87o6n8egfi.fsf@raybanana.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Injection-Date: Wed, 25 Feb 2026 15:30:12 -0000 (UTC) Injection-Info: gatto.corradoroberto.it; posting-account="news@corradoroberto.it"; posting-host="desktop.corradoroberto.it:192.168.1.4"; logging-data="3876"; mail-complaints-to="abuse@corradoroberto.it" Cancel-Lock: sha1:w9fZ9vpKE6UH7cTm8F9RcUMUdZY= sha256:AWz9JM6gGjUz0n3LxmuqtyKVSYbSFYJNfbNUasySOEs= sha1:zvuzTMq7lznzagWB/6DvvBRHW5M= sha256:g8YakcgOF9L00me0MG6bEtGt4ziSvzqILdUtatL3iVw= X-LDAPD: CORRADO-ROBERTO X-MSMail-Priority: Normal X-Priority: 3 X-Newsreader: CatWalker 0126 X-TYPE: RCS 126 X-NNTP-Posting-Date: mer, 25 feb 2026 16:30:12 +0100 X-Mailver: 8 X-MTA: Sendmail MHS X.400 X-Copyright: The distribution through any means different from usenet is forbidden. The publishing of this article on the WEB Is also forbidden. Quotations are allowed.