Thread View: news.admin.peering
3 messages
3 total messages
Started by Ray Banana
Mon, 05 Jan 2026 06:12
Re: Intercept articles with MIME attachments
Author: Ray Banana
Date: Mon, 05 Jan 2026 06:12
Date: Mon, 05 Jan 2026 06:12
44 lines
2682 bytes
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
Re: Intercept articles with MIME attachments
Author: Urs Janรen
Date: Mon, 05 Jan 2026 07:15
Date: Mon, 05 Jan 2026 07:15
18 lines
1855 bytes
1855 bytes
In Ray Banana <rayban@raybanana.net> wrote: > 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. JFTR: tin does not create any mulipart articles (only exception: forwarding articles via mail with mime_forward set). sure you can "manually" add any (bogus) additional headers. > Please see <c062aef9-ac4c-6f44-d64a-d0fc9f00b013@insomnia247.nl> for an > example. Eternal-September gives me | >HDR Xref <c062aef9-ac4c-6f44-d64a-d0fc9f00b013@insomnia247.nl> | <430 No such article
Re: Intercept articles with MIME attachments
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads