πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84394

Re: INN's mailpost script - requested change.

#84394
From: D. Stussy
Date: Thu, 22 Sep 2011 23:29
35 lines
2523 bytes
"Julien Γ‰LIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:j5g860$9qe$1@news.trigofacile.com...
> > "A single header field line is limited to 998 bytes."
> >
> > I have noted that some mail headers (which always end up being added to
the
> > "weird_mail_hdrs" variable) exceed this limit, especially those which
> > relate to headers added by spam detection (e.g. a list of spam rules
which
> > fired).  Would it be possible to modify any header added to this
variable
> > to truncate them at 995 bytes plus elipsis ("...")?
>
> Are the mail headers you are speaking about composed of lines whose
> length exceeds 998 bytes between two consecutive CRLF?
> If that is the case, then these mails have an invalid syntax and I would
> have thought you would have rejected them at first sight.  :-)
>
>
> > I know that detection of the case is easy.  About line 312:
> >
> >      # Random unknown header.  Prepend 'X-' if it is not already there.
> >      $_ = "X-$_" unless /^X-/sio ;
> >
> > +   If length($_) > 998 then ....
> >
> >      $weird_mail_hdrs .= "$_\n";
>
> Why not just remove the invalid header?  (998 bytes without seeing any
CRLF)

That could be done, but I thought that the idea was to preserve as much as
possible from the original message....

Technical Details
Message-ID: <j5ggc9$q20$1@snarked.org>
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!news.snarked.org!pool-71-106-211-51.lsanca.dsl-w.verizon.net!not-for-mail
References: <j5e6c0$8ib$1@snarked.org> <j5g860$9qe$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <j5ggc9$q20$1@snarked.org>
Subject: Re: INN's mailpost script - requested change.
Date: Thu, 22 Sep 2011 16:29:16 -0700
From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org>
References: <j5e6c0$8ib$1@snarked.org> <j5g860$9qe$1@news.trigofacile.com>
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!news.snarked.org!pool-71-106-211-51.lsanca.dsl-w.verizon.net!not-for-mail
Newsgroups: news.software.nntp
Lines: 35
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
Injection-Date: Thu, 22 Sep 2011 23:29:13 +0000 (UTC)
Injection-Info: snarked.org;
 posting-host="pool-71-106-211-51.lsanca.dsl-w.verizon.net:71.106.211.51";
 logging-data="26688"; mail-complaints-to="newsmaster+complaints@snarked.org"
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478