🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #86100

Re: News fetcher.

#86100
From: Anonymous
Date: Mon, 16 Dec 2013 22:04
89 lines
4897 bytes
On 2013-12-16 09:29, Dennis Davis wrote to news.software.nntp:

> 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?

Here is what I mean.
This is one article was retrieved by rtin. Everything if fine here.

begin 600 01_original.txt.bz2
M0EIH.3%!629364-P7UD``<-?@$`0=.________"____Z4`5X;/=77=`M[SJ\
MJ-YJPU-"F--!,DVF2:8F4]/30GDIX$TPFB>(C31IY0&IHFD]$]3)ZCU,1H)Z
MF"8$`TT-&AH!HTTT`T0T`@ILJ?IIJ-!Z4VIM)H-----#1ID,C)D-`JG^HIH:
M-#33(`#(T``:`!H:-`T#0)0IDT1/U--&D])Z*/)/(R--$-#:FC$-J-#0`TI9
M1G[6VX-V1_#6=D%=!\\Y2;-74EO=A'0;F["_Q<]SIG8%:[KI5[..W.K*<.F1
M+P62.]RDL(E'W&2C([CFS/)LXE>'B&;"#.S6$%E9+K>R6[O-D8W*^HI1CKG\
M?$K4G'DA'M$JN]ZG4]8<(=F2+&99W+C130N"IT4F^L727P7Y70U-M-MB3H-!
M1HGGAUOE"S$0>*FT0O#<(FJH$AYJ"2CQ1GTV4[<H:-DUM`98N4XHKAM9=A6?
M3I"YY;NEZ`S3]QWK[4K!//B+E.T3#DWK*$7>?Q6#5-2TO.7X%P55B<%;UZ=.
M?.UT;FC[HKX[`@CK?"4FS$/`3'31+J#=02P7^L9U2W&NIR@J*J)05FI@>X+I
[...]
&"00W!?60
`
end

Now the same article retrieved by newsfetch. Broken header.

begin 600 02_broken.txt.bz2
M0EIH.3%!629368+P%TP``<Q?@$`0=.________"____Z4`6;IW/=U7>AKS>;
MFMT=[G5PU-"`T(`TTIXTGE1X&IZ$9HF3:)/4\32,AY1AJ:"C$]&FJG[2;4RC
M)I/3:CU/2:`TU&T@T9#RF``U-#0$R)IIJ;*3)CU3TGJ8@]3T30--J9-,F)D/
M4!H1$]":31Z39-$-H@Q#!!D!A,C)IA-&"20DV4TF]28C)Z*-E-H]2,T0T'DC
M1HR9#30`FN7>98[CVA_"45;D]!:HPBS='6=GA?##M3!NTJ@':]SI$(!]JI,A
M?>YJLC\V(W,CQ*;432>B+@`":D)#(YYO+Y76WG490X/NO>NE+E(Q0[&KAFSL
M>0W*>M$80N+Z$BPO0?)6^'>(T^+DMGV!H?W5P6O=HM5"4Y*>FB4R=4+8JXLN
MPU^=EA,QG1&2A'NWCLV1$QMA"$IG!D(]!?=!&2(:)TE<3^T:?OA5Y9A./CNC
M0*=N*B^_$;85PH?OVIN;I^UZD9FA&[](DJ!/4!7Y2LDNYBYX`B,=?=\,T6E)
M><PTE4JRA*"NZYMFC0SV;PV+U?`+801U4!""Y&-1$YYVN(-M"K&_CD:&56W=
[...]
E&&XO%D8^Y<">4_#4V(C*7`.Y*P'RS%\AH'P+N2*<*$A!>`NF````
`
end

> 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?

-- 
Technical Details
Message-ID: <5cf178b16a960c259f01a94d1e69e6a0@breaka.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-in-01.newsfeed.easynews.com!easynews.com!easynews!news.glorb.com!news.alt.net!sewer!news.dizum.net!not-for-mail
References: <2f6e756fff9b1a0f874b20e3fb0dfb28@breaka.net> <l8eh8f$2bs$1@trinity.darkstorm.co.uk> <783a025051ce5cd2e07825e698f81edf@breaka.net> <l8mh57$24r$1@speranza.aioe.org>

Show Full Headers
Complete Article Headers
Message-ID: <5cf178b16a960c259f01a94d1e69e6a0@breaka.net>
Subject: Re: News fetcher.
Date: Tue, 17 Dec 2013 06:04:06 +0800
From: Anonymous <noreply@breaka.net>
References: <2f6e756fff9b1a0f874b20e3fb0dfb28@breaka.net> <l8eh8f$2bs$1@trinity.darkstorm.co.uk> <783a025051ce5cd2e07825e698f81edf@breaka.net> <l8mh57$24r$1@speranza.aioe.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-in-01.newsfeed.easynews.com!easynews.com!easynews!news.glorb.com!news.alt.net!sewer!news.dizum.net!not-for-mail
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Newsgroups: news.software.nntp
Organization: dizum.com - The Internet Problem Provider
X-Abuse: abuse@dizum.com
Injection-Info: sewer.dizum.com - 194.109.206.211
X-Received-Bytes: 4481
Lines: 88
X-Original-Bytes: 4556