🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #66751

Re: problem with line length for web to usenet feed

#66751
From: Curt Welch
Date: Tue, 30 Sep 2003 13:41
27 lines
2350 bytes
Ravi <ravi@NOSPAMliferank.com> wrote:
> Hello....
>
> I'm trying to perfect my web (phpBB) to Usenet gateway and am having
> problems getting posts generated by web users to format correctly for
> usenet.  Specifically, if I don't wrap the lines at 70 characters,
> usenet readers see long lines of unwrappable text, but if I add
> returns at appropriate points (\n) the messages then have 'hard
> returns' which format irregularly.

When the message is sent to the server over NNTP, lines are terminated with
CR LF paris.  A "return" is \r.  A newline on Unix/C is \n which is a line
feed (LF).

You might be using tools which turn newlines into CR LF paris when it's
transmitted over NNTP, or maybe you have to do it yourself.  If you are
inserting a "return", aka \r, then it's not going to get turned into CR LF.
If you are inserting newlines \n, and it's not working, then you probably
need to insert CR LFs.

Also keep in mind that lines with leading dots need to have the dot
doubled.  So if you break a line and create a line with a leading dot in
the processes, you need to also insert an extra dot.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20030930094138.183$22@newsreader.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.20140818.mbox.gz!text1.nnrp.aus1!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!diablo.voicenet.com!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <vu7inv81o7k15aeb8tqklmu0qrje0abnnn@4ax.com>

Show Full Headers
Complete Article Headers
Message-ID: <20030930094138.183$22@newsreader.com>
Subject: Re: problem with line length for web to usenet feed
Date: Tue, 30 Sep 2003 13:41:38 +0000
From: curt@kcwc.com (Curt Welch)
References: <vu7inv81o7k15aeb8tqklmu0qrje0abnnn@4ax.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.20140818.mbox.gz!text1.nnrp.aus1!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!diablo.voicenet.com!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com u+QCu0LM0noO8PWNOmp_Jp5j2QL-HZs-Ylpfw8_A/hM2=hn
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,
 ?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 27