🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84359

Re: INN's mailpost script - requested change.

#84359
From: Russ Allbery
Date: Thu, 22 Sep 2011 02:40
17 lines
1845 bytes
"D. Stussy" <spam+newsgroups@bde-arc.ampr.org> writes:

> "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 ("...")?

You should really fold them rather than truncating them if possible.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87vcslti2y.fsf@windlord.stanford.edu>
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!newsfeed.news.ucla.edu!usenet.stanford.edu!usenet-its.stanford.edu!not-for-mail
References: <j5e6c0$8ib$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <87vcslti2y.fsf@windlord.stanford.edu>
Subject: Re: INN's mailpost script - requested change.
Date: Wed, 21 Sep 2011 19:40:53 -0700
From: Russ Allbery <rra@stanford.edu>
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!newsfeed.news.ucla.edu!usenet.stanford.edu!usenet-its.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 17
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: usenet-its.stanford.edu 1316659253 14500 171.67.225.134 (22 Sep 2011
X-Complaints-To: news@usenet-its.stanford.edu
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
Cancel-Lock: sha1:lE0idy+I3tzPS3/P/0xlux8xQcE=
X-Original-Bytes: 1608