πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84093

Re: Cleanfeed: Looking for regex expression for ....

#84093
From: Junior
Date: Thu, 02 Jun 2011 10:04
39 lines
2534 bytes
Julien Γ‰LIE wrote:
> Hi Junior,
>
>> Also, I'm wondering what would happen if 'we' changed the From
>> header to HTobs (obsolete header but keep untouched); would this
>> interfere with the proper operation of INN?
>
> innd and nnrpd would then accept articles which do not contain From: 
> header fields, or which contain several such header fields.  It is not 
> RFC-compliant.

That's what I was thinking. But why would anyone do such a thing? ;)
Cuz you can? It's interesting because it might help me understand
what INN actually *needs* to function without a meltdown.

> Also please note that innd should not reject these already injected 
> messages into Usenet.  And that nnrpd properly rejects the messages 
> mentioned by Dieter ("From:" headers that have no "@" in them) at 
> injection time.

Steve Crook pointed that out to me awhile ago and mentioned that
some older servers didn't enforce a working email address in the
>From header. Got me thinking... that it might be better to handle
things like this with "posting filters" or Cleanfeed, if you decided
to filter incoming posts based on this.

> I read in nnrpd/post.c:
>
>      p = strchr(frombuf, '@');
>      if (p) {
> [...]
>      } else {
> [...]
>          return "From: address not in Internet syntax";
>      }

        /* return "From: address not in Internet syntax"; */

Commenting out a single line eliminates that pesky feature.
Technical Details
Message-ID: <201106021004.UTC.is7n6k$dop$3@tioat.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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news2.google.com!goblin1!goblin3!goblin.stu.neva.ru!tioat.net!not-for-mail
References: <is3slt$d30$1@snarked.org> <201106010210.UTC.is472f$e5a$1@tioat.net> <94nmn3F51qU1@mid.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <201106021004.UTC.is7n6k$dop$3@tioat.net>
Subject: Re: Cleanfeed: Looking for regex expression for ....
Date: Thu, 02 Jun 2011 10:04:04 +0000
From: Junior
References: <is3slt$d30$1@snarked.org> <201106010210.UTC.is472f$e5a$1@tioat.net> <94nmn3F51qU1@mid.individual.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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news2.google.com!goblin1!goblin3!goblin.stu.neva.ru!tioat.net!not-for-mail
Newsgroups: news.software.nntp
Lines: 39
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 2 Jun 2011 10:04:04 +0000 (UTC)
Injection-Info: tioat.net; posting-host="13ea0559ba455b06f522618b8370562f";
 mail-complaints-to="news_AT_tioat_DOT_net"