🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #86097

Re: News fetcher.

#86097
From: Dennis Davis
Date: Mon, 16 Dec 2013 09:29
49 lines
3021 bytes
In article <783a025051ce5cd2e07825e698f81edf@breaka.net>,
Anonymous  <noreply@breaka.net> wrote:
>On 2013-12-13 08:41, Tony wrote to news.software.nntp:
>
>> On 2013-12-12, Anonymous <noreply@breaka.net> wrote:
>> > Could anyone advice me substitute for newsfetch?
>> > newsfetch - Pull news from an NNTP server and store in the
>> > mailbox format.
>>
>> Is there something missing from newsfetch or a problem using it
>> that you're trying to work around? i.e. hard to offer advice
>> without knowing why newsfetch isn't doing what you need.
>
>newsfetch damage very long lines in the header and immediately add
>one unnecessary line after that.

You'll need to be more precise about "very long lines" for the
reasons indicated below.  Do you have an estimate of the largest
line that newsfetch can handle?

Don't use newsfetch myself.  The code is readily available and dates
from the late 1990's.  The manual page for newsfetch includes:

  Initially, I wrote this utility for personal use. The current
  version may not have all the features you want, but you are free
  to modify the code for your personal use.

I've had a *very* cursory look at the code.  It uses fixed length
buffers in places.  It's easy to increase the buffer size(s) and
compile your own version.  And see if that makes any difference.
Increasing buffer sizes is a bodge, rather than a fix.  But it's
quick, cheap, easy to do, and may quickly indicate where the problem
lies.  It's also a bodge that may push your problems into the long
grass.

As a long shot, RFC5321 "Simple Mail Transfer Protocol" includes the
restriction:

4.5.3.1.6.  Text Line

   The maximum total length of a text line including the <CRLF> is 1000
   octets (not counting the leading dot duplicated for transparency).
   This number may be increased by the use of SMTP Service Extensions.

Your mail client *may* be aware of this and not capable of handling
lines longer that 1000 characters.  Have you checked that this isn't
the problem?
-- 
Dennis Davis <dennisdavis@fastmail.fm>
Technical Details
Message-ID: <l8mh57$24r$1@speranza.aioe.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.ams.giganews.com!nntp.giganews.com!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail
References: <2f6e756fff9b1a0f874b20e3fb0dfb28@breaka.net> <l8eh8f$2bs$1@trinity.darkstorm.co.uk> <783a025051ce5cd2e07825e698f81edf@breaka.net>

Show Full Headers
Complete Article Headers
Message-ID: <l8mh57$24r$1@speranza.aioe.org>
Subject: Re: News fetcher.
Date: Mon, 16 Dec 2013 09:29:11 +0000
From: Dennis Davis <dennisdavis@fastmail.fm>
References: <2f6e756fff9b1a0f874b20e3fb0dfb28@breaka.net> <l8eh8f$2bs$1@trinity.darkstorm.co.uk> <783a025051ce5cd2e07825e698f81edf@breaka.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!border1.nntp.ams.giganews.com!nntp.giganews.com!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: None at all.
Lines: 49
NNTP-Posting-Host: tu9k3mKdMuXVp7lLrTtEtw.user.speranza.aioe.org
X-Complaints-To: abuse@aioe.org
Originator: ccsdhd@poulidor.example.net (Dennis Davis)
X-Notice: Filtered by postfilter v. 0.8.2
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)