🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #61326

Re: Help

#61326
From: Charles Kerr
Date: Sun, 07 May 2000 00:00
66 lines
4025 bytes
In article <1ea9has.1k4qlqjbj7du0N%planb@newsreaders.com>,
planb@newsreaders.com (J. B. Moreno) wrote:
> Charles Kerr <charles@superpimp.org> wrote:
> 
>> In article <39135CD6.982EB8E6@pacific.net.sg
>>, "David K.. Watson"<watsondk@pacific.net.sg> wrote:> I am using 0.8.7,
> and have een having this problem since 7.6, I filed a> bug report, and am
> waiting for a responce. This is an interesting one as> if it was the LF
> problem everyone would get this, which does not seem to> be the case.> >
> this is driving me nuts, been driven to netscape..Driving you to
> Netscape's newsreader  is unconscionable; I'd much ratherdrive you to
> gnus, slrn, or knews.  Mostly, though, I'd rather drive youback to Pan.
> :)I worked on this problem yesterday, and I believe it is fixed. Since
> I'venot been able to reproduce the 441 error on my newsservers, I'd
> appreciateit if you get a fresh copy of Pan from
> CVS(http://www.superpimp.org/download.html#CVS)and use it to try to
> follow-up to this message. cheers,Charles
> 
> 
> Charles, it doesn't look like this problem has been fixed -- this message
> from you is a prime example of why I think it's the LF problem.
> 
> All of the lines of the body are being terminated with LF and not the
> correct CRLF.  If the headers are also being handled in the same way,
> then the problem is that some servers will correct it for the headers but
> not for the body -- i.e. the exact same thing sent to various servers can
> produce different results: (a) some servers will correct this for the
> headers but not the body, (b) some will correct it for the headers AND
> the body, and finally (c) some won't correct it for either
> (and will thus reject the message as being illegal for one reason or
> another due to the fact that the message only consists of "one" header).
> 
> David's server is apparently doing (c), while your's is doing (a) -- the
> only news server I have easy access to (for running that is) does (b).
> 
> I could start it up and monitor the connections to it if you'd like, but
> I couldn't tell you much more than "it does it right" or "it does it
> wrong" (but I could tell you that).

The new header code that Pan is using reads similar to this for each
header:

	/* Subject: */
	tmp = gtk_editable_get_chars (msg->window->subject,0,-1);
	g_strstrip (tmp);
	g_string_sprintfa (postme, "Subject: %s\r\n", tmp);
	g_free (tmp);

But the body-handling code had nothing similar for transforming the edit
widget's linefeeds into CRLF.  It now looks like this, thanks to your
recommendation:

	pan_g_string_replace (body, "\n.", "\n.."); /* RFC977 3.10.1 */
	pan_g_string_replace (body, "\n", "\r\n"); /* make sure that each.. */
	pan_g_string_replace (body, "\r\r\n", "\r\n"); /* ..line ends in \r\n */
	g_string_append (postme, body->str);

which is being used to post this message.  If this is wrong, just keep
working that clue stick. :)

Incidentally, John's refcount in Pan's CREDITS file is now 2, and
David's is 1.



Technical Details
Message-ID: <rorR4.7764$Lx.1264831@news-west.usenetserver.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <3912BD09.29DF476C@pacific.net.sg> <1ea5p69.vqjp2167y5q8N%planb@newsreaders.com> <39135CD6.982EB8E6@pacific.net.sg> <HIgR4.1634$Lx.290556@news-west.usenetserver.com> <1ea9has.1k4qlqjbj7du0N%planb@newsreaders.com>

Show Full Headers
Complete Article Headers
Message-ID: <rorR4.7764$Lx.1264831@news-west.usenetserver.com>
Subject: Re: Help
Date: Sun, 07 May 2000 00:00:00 +0000
From: "Charles Kerr" <charles@superpimp.org>
References: <3912BD09.29DF476C@pacific.net.sg> <1ea5p69.vqjp2167y5q8N%planb@newsreaders.com> <39135CD6.982EB8E6@pacific.net.sg> <HIgR4.1634$Lx.290556@news-west.usenetserver.com> <1ea9has.1k4qlqjbj7du0N%planb@newsreaders.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 620521475
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
X-Complaints-To: support@usenetserver.com
Organization: WebUseNet Corp http://www.usenetserver.com - Home of the fastest NNTP servers on the Net.
NNTP-Posting-Date: Mon, 08 May 2000 00:29:11 EDT
Newsgroups: news.software.readers