Article View: news.software.nntp
Article #84392Re: INN's mailpost script - requested change.
From: Julien ÉLIE
Date: Thu, 22 Sep 2011 21:09
Date: Thu, 22 Sep 2011 21:09
32 lines
2533 bytes
2533 bytes
Hi Dieter,
> "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)
--
Julien ÉLIE
« Ce serait un tunnel pour aller de la Gaule en Bretagne. »
(Astérix)
Technical Details
Message-ID:
<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!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-552-1-92-140.w83-199.abo.wanadoo.fr!not-for-mailReferences:
<j5e6c0$8ib$1@snarked.org>Show Full Headers
Complete Article Headers
Message-ID: <j5g860$9qe$1@news.trigofacile.com> Subject: Re: INN's mailpost script - requested change. Date: Thu, 22 Sep 2011 23:09:20 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <j5e6c0$8ib$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!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-552-1-92-140.w83-199.abo.wanadoo.fr!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 22 Sep 2011 21:09:20 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-host="aaubervilliers-552-1-92-140.w83-199.abo.wanadoo.fr:83.199.147.140"; logging-data="10062"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7; fr; In-Reply-To: <j5e6c0$8ib$1@snarked.org> Lines: 31 X-Original-Bytes: 2300